Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Trying to Log In to Wells Fargo via Chromedriver 2.34, Selenium 3.8, and Python 3.6.2

I am trying to write a program that will log me in to my Wells Fargo account. However, after running my code, it just takes me to the same page and doesn't log me in. I tried putting the log in section in a loop and it continuously loops.

Here is the code :

from selenium import webdriver
import time

browser = webdriver.Chrome()
browser.get('https://connect.secure.wellsfargo.com/auth/login/present?
origin=cob&error=yes&LOB=CONS&destination=AccountSummary')

userID = browser.find_element_by_name('j_username')
userID.clear()
userID.send_keys('my_username')

password = browser.find_element_by_name('j_password')
password.clear()
password.send_keys('my_password')

password.submit()

time.sleep(5)
browser.quit

Below is a screenshot.

Error code and web page I can't get past

And here is the copy pasted error code I receive :

[9152:6848:1218/202615.262:ERROR:service_manager.cc(157)] Connection InterfaceProviderSpec prevented service: content_renderer from binding interface: blink::mojom::ReportingServiceProxy exposed by: content_browser

I've tried googling that error code along with key phrases and parts of the error code and have not found a solution yet.

like image 887
JTS Avatar asked Nov 08 '22 12:11

JTS


1 Answers

I have found a temporary work around using Firefox instead. Firefox never gave me the originally posted error. However, when I tried using Firefox it sent me to a captcha page. Through sheer luck while retesting the program, I clicked on the console window from the geckodriver and learned that if you are clicked in a different window (any window it appears), Wells Fargo does not send you to the captcha page and logs you in to your account. So I modified my code to open up a second browser and close it while it's entering in info.

browser = webdriver.Firefox()
browser2 = webdriver.Firefox()
browser.get('https://connect.secure.wellsfargo.com/auth/login/present?origin=cob&error=yes&LOB=CONS&destination=AccountSummary')
userID = browser.find_element_by_id("j_username")
userID.clear()
userID.send_keys('my_username')
password = browser.find_element_by_id("j_password")
password.clear()
password.send_keys('my_password')
browser.find_element_by_name("continue").click()
browser2.quit()
like image 78
JTS Avatar answered Nov 14 '22 21:11

JTS