简体   繁体   中英

Logging Into Wells Fargo Using Selenium

I am trying to log into my bank account on Wells Fargo using Selenium Webdriver. However, I keep getting redirected to the below page whether I use Chrome, Firefox or Edge.

富国银行检测页面

I am assuming that Wells Fargo is detecting Selenium and redirecting me. My program to log in is written in Python. If anyone successfully logged into Wells Fargo using Selenium, please give me some tips regarding how you did it.

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. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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