Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98817

Chromedriver selenium opens page but closes 2 seconds later (Multiple Error Messages)

$
0
0

I'm currently using chromedriver 2.25 to launch a webpage. Everything is done in python but however, when i run the script, i get the following error below.

my chrome version is chrome 54+ and I'm running windows 7 professional.

I've tried using chromedriver 2.27 but I still get the same error message. Does anyone know why I keep getting this error message :/? Would really apperciate any help here :)

   [0131/143630:ERROR:angle_platform_impl.cc(33)] ANGLE Display::initialize 
   error 4 : Could not create D3D11 device.

   [0131/143630:ERROR:gl_surface_egl.cc(612)] eglInitialize D3D11 failed 
   with error EGL_NOT_INITIALIZED, trying next display type

   [0131/143630:ERROR:angle_platform_impl.cc(33)] ANGLE Display::initialize 
   error 4 : Renderer does not support PS 3.0.aborting!

   [0131/143630:ERROR:gl_surface_egl.cc(612)] eglInitialize D3D9 failed 
   with error EGL_NOT_INITIALIZED

   [0131/143630:ERROR:gl_initializer_win.cc(272)] 
   GLSurfaceEGL::InitializeOneOff failed.
   [0131/143630:ERROR:gpu_child_thread.cc(352)] Exiting GPU process due to 
   errors during initialization
   [4632:5396:0131/143630:ERROR:browser_gpu_channel_host_factory.cc(113)] 
   Failed to launch GPU process.   

This is how I start my driver in python

options = Options()
# options.add_argument('--headless')
options.add_argument('--incognito')
options.add_argument('--disable-gpu')
options.add_argument('--log-level=3')
#options.add_argument('--window-position=10000,10000')
chrome_driver = os.getcwd() +"\\chromedriver.exe"
driver = webdriver.Chrome(chrome_driver, chrome_options=options)

Viewing all articles
Browse latest Browse all 98817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>