问题描述
您看到的错误:
[3420:22152:1110/151643.950:ERROR:edge_auth_errors.cc(387)] EDGE_IDENTITY: Get Default OS Account failed: Error: Primary Error: kImplicitSignInFailure,Secondary Error: kAccountProviderFetchError,Platform error: 0,Error string:
[3420:22152:1110/151644.757:ERROR:fallback_task_provider.cc(119)] Every renderer should have at least one task provided by a primary task provider. If a fallback task is shown,it is a bug. Please file a new bug and tag it as a dependency of crbug.com/739782.
[3420:22152:1110/151647.899:ERROR:fallback_task_provider.cc(119)] Every renderer should have at least one task provided by a primary task provider. If a fallback task is shown,it is a bug. Please file a new bug and tag it as a dependency of crbug.com/739782.
是由于Chrome衍生了一个子进程&任务管理器兼容性而导致的一个通用错误的结果,到目前为止,你可以忽略它。有关详细信息,请查看Issue 739782: [Task Manager] [Meta bug ☂️] Processes not shown in Task Manager。
此外,一些特定的python框架倾向于在程序的所有行都成功执行时自动关闭浏览器,例如Python-Unittest,与上面解释的错误无关。
解决方法
我正在尝试测试selenium,以获得自动登录网站的解决方案,但我甚至无法让Selenium保持打开状态。它做它现在应该做的事情,然后在没有driver.quit()的情况下立即退出。我得到了以下错误,我希望了解它们的含义:
DevTools listening on ws://127.0.0.1:51111/devtools/browser/111111fe-423z-111zz-1116-r0z2300086f7
[3420:22152:1110/151643.950:ERROR:edge_auth_errors.cc(387)] EDGE_IDENTITY: Get Default OS Account failed: Error: Primary Error: kImplicitSignInFailure, Secondary Error: kAccountProviderFetchError, Platform error: 0, Error string:
[3420:22152:1110/151644.757:ERROR:fallback_task_provider.cc(119)] Every renderer should have at least one task provided by a primary task provider. If a fallback task is shown, it is a bug. Please file a new bug and tag it as a dependency of crbug.com/739782.
[3420:22152:1110/151647.899:ERROR:fallback_task_provider.cc(119)] Every renderer should have at least one task provided by a primary task provider. If a fallback task is shown, it is a bug. Please file a new bug and tag it as a dependency of crbug.com/739782.
Yahoo | Mail, Weather, Search, Politics, News, Finance, Sports & Videos
https://www.yahoo.com/
这是我的代码:
from selenium import webdriver
from selenium.webdriver.edge.service import Service
ser = Service("C:\\Users\\Desktop\\Projects\\auto_login\\msedgedriver.exe")
driver = webdriver.Edge(service = ser)
driver.get("http://yahoo.com")
print(driver.title)
print(driver.current_url)