我正在尝试使用 Selenium Webdriver 登录我在 Wells Fargo 的银行帐户。但是,无论我使用 Chrome、Firefox 还是 Edge,我都会被重定向到以下页面。
我假设富国银行正在检测 Selenium 并重定向我。我的登录程序是用 Python 编写的。如果有人使用 Selenium 成功登录富国银行,请给我一些关于您是如何做到的提示。
试试这个代码:
from selenium.webdriver import Chrome
browser = Chrome()
browser.get('https://wellsfargo.com')
#GET user element and POST username to element
user = browser.find_element_by_id('userid')
user.send_keys('USERNAME')
#GET user element and POST password to element
passwd = browser.find_element_by_id('password')
passwd.send_keys('PASSWORD')
passwd.submit()
# ===> you should be logged in and redirected to account page. <=== #
请告诉我它对你来说效果如何。因为我不是银行客户,所以我不能超越这一点。 :)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)