Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HUST-2019-ncov-submit-fucker
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
recolic-hust
HUST-2019-ncov-submit-fucker
Commits
30e6c197
There was an error fetching the commit references. Please try again later.
Commit
30e6c197
authored
4 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+7
-0
7 additions, 0 deletions
README.md
run.py
+4
-1
4 additions, 1 deletion
run.py
with
11 additions
and
1 deletion
README.md
+
7
−
0
View file @
30e6c197
...
...
@@ -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
华科登录界面增加了一个验证码. 我的临时解决方案是: 输入帐号密码后, 程序会等待用户手动输入验证码, 并手动点击确认.
用户手动点击确认后, 程序才可以继续正常工作.
This diff is collapsed.
Click to expand it.
run.py
+
4
−
1
View file @
30e6c197
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment