Reputation: 439
I am trying to run selenium chrome headless mode in Windows7 enterprise edition. I have:
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument('--headless')
options.add_argument('--disable-gpu')
options.add_argument('window-size = 1920,1080')
driver = webdriver.Chrome(executable_path="chromedriver.exe", options=options)
I get:
chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed
The same set of commands works perfectly on my mac book pro anyone knows why?
Upvotes: 0
Views: 154
Reputation: 29362
I think you should try with full file path at this line :
driver = webdriver.Chrome(executable_path="/full file path/chromedriver.exe", options=options)
Upvotes: 1