Home > OS >  Selenium.com mon. Exceptions. WebDriverException: Status code was: 0
Selenium.com mon. Exceptions. WebDriverException: Status code was: 0

Time:12-25

` ` `
The from the selenium import webdriver
# pay attention to the position of the driver in the Chrome to fill out the "C: \ Program Files \ (x86) Google \ Chrome \ Application \ chrome_proxy exe"
Driver=webdriver. Chrome (* * * * * * * * * *)
Driver. The get (" https://www.baidu.com ")
` ` `
Error: selenium.com mon. Exceptions. WebDriverException: Message: Service unexpectedly exited. The Status code was: 0

I checked some blog:
1. * * * * have to convert into local path, I changed or error
2. The environment variables set wrong, I also checked the
3. Say have driven directly onto the working directory, I also tried, or an error

CodePudding user response:

But to open a browser, it's make me depressed, but also just open the browser,
Because when I add the following code, such as
` ` `
Input=driver. Find_element_by_css_selector (' # kw)
Input. Send_keys (" dinosaurs fight ")

The button=driver. Find_element_by_css_selector (' # su ')
Button. Click ()
` ` `
After, or just open the browser, and then an error, no subsequent reactions

CodePudding user response:

A great god answers
  • Related