0

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?

5
  • looks like issue is here executable_path="chromedriver.exe" Commented Jul 8, 2021 at 17:23
  • also can you share chrome driver version , and chrome browser version ? Commented Jul 8, 2021 at 17:23
  • My Chrome browser = 91.0.4472.124 Commented Jul 8, 2021 at 17:29
  • the chrome driver = 91.0.4472.101 Commented Jul 8, 2021 at 17:30
  • they are up to date, so we can rule out driver mis-match issue Commented Jul 8, 2021 at 17:31

1 Answer 1

1

I think you should try with full file path at this line :

driver = webdriver.Chrome(executable_path="/full file path/chromedriver.exe", options=options) 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.