[英]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。 Firefox never gave me the originally posted error. Firefox从未给过我最初发布的错误。 However, when I tried using Firefox it sent me to a captcha page. 但是,当我尝试使用Firefox时,它使我进入了验证码页面。 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. 通过重新测试程序的运气,我从geckodriver上单击了控制台窗口,并了解到,如果您在其他窗口(出现的任何窗口)中单击,Wells Fargo不会将您发送到验证码页面并登录到您的帐户。 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 : 要登录您的Wells Fargo
帐户,您可以使用以下代码块:
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. 注意 :如您所见,ReportingServiceProxy exposed by: content_browser
的错误ReportingServiceProxy exposed by: content_browser
您可以尝试包括chromedriver
二进制文件的绝对值。
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. 如果您仍然遇到相同的问题(经过Error: Connection InterfaceProviderSpec prevented service: content_renderer from binding interface
而"service_manager:connector" prevented service: content_renderer from binding interface
)我建议通过Revo Uninstaller
卸载Chrome Browser
并运行CCleaner
来清除所有操作系统琐事,然后重新安装Chrome Browser
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.