Error while opening link using python and selenium

你。 提交于 2019-12-04 07:09:22

问题


Trying to open google in browser using python and selenium, gave me following errors:(Image of errors)

DevTools listening on 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 failed with er ror EGL_NOT_INITIALIZED [0901/085753.496:ERROR:gl_initializer_win.cc(232)] GLSurfaceEGL::InitializeOneOf f failed. [0901/085753.502:ERROR:viz_main_impl.cc(201)] Exiting GPU process due to errors during initialization [7188:10216:0901/085753.819:ERROR:gpu_process_transport_factory.cc(1016)] Lost U I shared context. [0901/085753.912:ERROR:command_buffer_proxy_impl.cc(113)] ContextResult::kFatalF ailure: Shared memory handle is not valid [0901/085753.962:ERROR:command_buffer_proxy_impl.cc(113)] ContextResult::kFatalF ailure: Shared memory handle is not valid

It starts chrome browser, also opens the link, but it is giving error in back...

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')

来源:https://stackoverflow.com/questions/52121506/error-while-opening-link-using-python-and-selenium

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!