Skip to content
Snippets Groups Projects
Commit 30e6c197 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

May 1: HUST added a verification code while logging in. Use manual operation.

parent b9f5acb5
No related branches found
No related tags found
No related merge requests found
......@@ -17,3 +17,10 @@ Any linux with GUI support. it launches your firefox.
### WARNING: While making this script, I assume that your system language is ENGLISH
一个不必要的提示:如果你在墙内,用recolic.org代替recolic.net。不然CCP会阻止你的访问。
## 更新 2020.5.1
华科登录界面增加了一个验证码. 我的临时解决方案是: 输入帐号密码后, 程序会等待用户手动输入验证码, 并手动点击确认.
用户手动点击确认后, 程序才可以继续正常工作.
......@@ -28,9 +28,12 @@ elem.send_keys(config.uid)
elem = driver.find_element_by_id('pd')
elem.clear()
elem.send_keys(config.password)
driver.find_element_by_id('index_login_btn').click()
print('WAITING for user to type verification code, and click OK.')
# driver.find_element_by_id('index_login_btn').click()
wait_for_element_txt('下一步 Next step')
print('Login succeeded.')
assert driver.find_element_by_id('V1_CTRL154').is_selected() # Submit for myself
driver.find_element_by_link_text('下一步 Next step').click()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment