Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
修改刷新验证码xpath
Browse files Browse the repository at this point in the history
  • Loading branch information
bankroft committed Jul 24, 2018
1 parent b147b62 commit ec6e8c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion console_erya/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,17 @@
entrance_url = 'https://passport2.chaoxing.com/login?fid=145&refer=http://i.mooc.chaoxing.com'


# # 刷新验证码
# refresh_code = {
# 'type': 'xpath',
# 'string': '//*[@id="numVerCode"]'
# }


# 刷新验证码
refresh_code = {
'type': 'xpath',
'string': '//*[@id="numVerCode"]'
'string': '//*[@id="numVerCode_tr"]//a'
}

# 验证码图片存放位置
Expand Down

0 comments on commit ec6e8c2

Please sign in to comment.