简体   繁体   English

使用硒登录富国银行

[英]Logging Into Wells Fargo Using Selenium

I am trying to log into my bank account on Wells Fargo using Selenium Webdriver. 我正在尝试使用Selenium Webdriver登录Wells Fargo上的银行帐户。 However, I keep getting redirected to the below page whether I use Chrome, Firefox or Edge. 但是,无论我使用的是Chrome,Firefox还是Edge,我都会一直重定向到以下页面。

富国银行检测页面

I am assuming that Wells Fargo is detecting Selenium and redirecting me. 我假设Wells Fargo正在检测Selenium并重定向我。 My program to log in is written in Python. 我的登录程序是用Python编写的。 If anyone successfully logged into Wells Fargo using Selenium, please give me some tips regarding how you did it. 如果有人使用Selenium成功登录了富国银行,请给我一些有关如何操作的提示。

Try this code: 试试这个代码:

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. <=== # 

Please tell me how it works out for you. 请告诉我它如何为您工作。 since im not the bank client, i cannot fo beyond this point. 由于我不是银行客户,因此我无法超越这一点。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM