尝试使用python和selenium在浏览器中打开google时,出现以下错误:(Image of errors)
DevTools正在监听 ws://127.0.0.1:57033 / devtools / browser / 45f6818b-0d1e-4b81-9 637-861b579c7470 [0901 / 085753.496:ERROR:gl_surface_egl.cc(863)] eglInitialize D3D9失败,错误,错误EGL_NOT_INITIALIZED [0901 / 085753.496:ERROR:gl_initializer_win.cc(232)] GLSurfaceEGL :: InitializeOneOf f失败。 [0901 / 085753.502:ERROR:viz_main_impl.cc(201)]由于正在退出GPU进程 初始化期间出错 [7188:10216:0901 / 085753.819:ERROR:gpu_process_transport_factory.cc(1016)] 失去了我,我分享了情境。 [0901 / 085753.912:ERROR:command_buffer_proxy_impl.cc(113)] ContextResult :: kFatalF错误:共享内存句柄无效 [0901 / 085753.962:ERROR:command_buffer_proxy_impl.cc(113)] ContextResult :: kFatalF失败:共享内存句柄无效
它启动chrome浏览器,也打开了链接,但返回错误...
print("Starting...")
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support.ui import Select
print("Opening...")
driver = webdriver.Chrome()
driver.get('https://google.com')