File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ def muacloud():
99 driver = get_web_driver ()
1010# driver.get("https://12o.ooo/auth/login")
1111 driver .get ("https://12o.ooo/auth/login" )
12- driver .find_element_by_xpath ("//*[@id ='email']" ).send_keys (username )
13- driver .find_element_by_xpath ("//*[@id ='password']" ).send_keys (password )
14- driver .find_element_by_xpath ("//*[@id='login_submit ']" ).click ()
12+ driver .find_element_by_xpath ("//*[@type ='email']" ).send_keys (username )
13+ driver .find_element_by_xpath ("//*[@type ='password']" ).send_keys (password )
14+ driver .find_element_by_xpath ("//*[@type='button ']" ).click ()
1515
16- if driver .find_elements_by_xpath ("//*[@id=' checkin']" ) != []:
17- button = driver .find_element_by_xpath ("//*[@id=' checkin']" )
16+ if driver .find_elements_by_xpath ("//*[@class='xboard- checkin-button ']" ) != []:
17+ button = driver .find_element_by_xpath ("//*[@class='xboard- checkin-button ']" )
1818 driver .execute_script ("arguments[0].click();" , button )
1919 # driver.find_element_by_xpath("//*[@id='checkin']").click()
2020 print ('muacloud签到成功' )
You can’t perform that action at this time.
0 commit comments