Google chrome closes immediately after being launched with selenium

后端 未结 8 985
说谎
说谎 2021-01-19 09:37

I am on Mac OS X using selenium with python 3.6.3.

This code runs fine, opens google chrome and chrome stays open.:

chrome_options = Options()
chrome         


        
8条回答
  •  野的像风
    2021-01-19 10:01

    My solution is to define the driver in the init function first, then it won't close up the browser even the actional

提交回复
热议问题