mirror of
https://github.com/Kr1s77/awesome-python-login-model.git
synced 2026-10-17 04:30:50 +08:00
Update 163youdao.py
This commit is contained in:
committed by
GitHub
parent
8e97d369c9
commit
0e0c18b96f
@@ -1,5 +1,7 @@
|
||||
import time
|
||||
from selenium import webdriver
|
||||
|
||||
|
||||
login_url = "http://account.youdao.com/login?service=dict"
|
||||
|
||||
xpaths = {'usernameTxtBox': ".//*[@id='username']",
|
||||
@@ -32,6 +34,10 @@ def login():
|
||||
# Click Login button
|
||||
mydriver.find_element_by_xpath(xpaths['submitButton']).click()
|
||||
|
||||
# add sleep
|
||||
print('登录成功')
|
||||
time.sleep(5)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
login()
|
||||
|
||||
Reference in New Issue
Block a user