Skip to content

Commit 5d508f4

Browse files
authored
modify muacloud
1 parent 19a6402 commit 5d508f4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

muacloud.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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签到成功')

0 commit comments

Comments
 (0)