简体   繁体   中英

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.

错误代码和无法逾越的网页

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.

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()

To login into your Wells Fargo account you can use the following code block :

from selenium import webdriver

browser = webdriver.Chrome(executable_path=r'C:\path\to\chromedriver.exe')
browser.get('https://connect.secure.wellsfargo.com/auth/login/present?origin=cob&error=yes&LOB=CONS&destination=AccountSummary')
userID = browser.find_element_by_xpath("//input[@id='j_username']")
userID.clear()
userID.send_keys('my_username')
password = browser.find_element_by_xpath("//input[@id='j_password']")
password.clear()
password.send_keys('my_password')
browser.find_element_by_xpath("//input[@name='continue' and @type='submit']").click()
browser.quit()

Note : As you see the error as ReportingServiceProxy exposed by: content_browser you can try including the absolute pat of the chromedriver binary.


Update :

If you still face the same issue (after going through Error: Connection InterfaceProviderSpec prevented service: content_renderer from binding interface and "service_manager:connector" prevented service: content_renderer from binding interface ) I would suggest to uninstall Chrome Browser through Revo Uninstaller and run CCleaner to wipe oout all the OS chores and install Chrome Browser afresh.

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