简体   繁体   English

尝试通过Chromedriver 2.34,Selenium 3.8和Python 3.6.2登录Wells Fargo时出错

[英]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 the chromedriver binary. 注意 :如您所见, ReportingServiceProxy exposed by: content_browser的错误ReportingServiceProxy exposed by: content_browser您可以尝试包括chromedriver二进制文件的绝对值。


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. 如果您仍然遇到相同的问题(经过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.

相关问题 使用硒登录富国银行 - Logging Into Wells Fargo Using Selenium 如何使用Selenium和Python在Wells Fargo帐户内登录 - How to login within Wells Fargo account using Selenium and Python Python Selenium - 在 cmd 中禁用 Chromedriver 日志消息 - Python Selenium - Disable Chromedriver log message in cmd selenium.common.exceptions.WebDriverException:消息:使用 Selenium 和 Chromedriver 通过 Python 的目标框架分离错误 - selenium.common.exceptions.WebDriverException: Message: target frame detached error using Selenium and Chromedriver via Python Google 错误 - 无法登录,尝试使用 Python selenium 登录时 - Google Error - Log-in not possible, when trying to log in with Python selenium Gmail 中的错误通过谷歌搜索通过 Chromedriver 使用 Selenium Python 自动登录 - Error in Gmail Login by google searching Automation via Chromedriver using Selenium Python 在 chromedriver (Python) 中使用 Selenium 时对象不可调用错误 - Object not callable error in using Selenium with chromedriver (Python) 尝试在 Python 3.8 上安装 Sklearn 时出现错误 - Trying to Install Sklearn on Python 3.8 Gives an Error 尝试在 python 3.8 中使用 selenium 在我的个人资料上打开 chrome - Trying to open chrome on my profile with selenium in python 3.8 chromedriver的python-selenium绑定错误 - Error in python-selenium bindings for chromedriver
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM