Reputation: 61
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.
Upvotes: 5
Views: 1667
Reputation: 193348
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 thechromedriver
binary.
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.
Upvotes: 0
Reputation: 61
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()
Upvotes: 1