I am working on selenium (3.5.0),Python 3.6.8 i wanted to test simple code that is written below
driver.implicitly_wait(10)
driver.get(url)
print(driver.title)
sleep(6)
driver.close()
but it is throwing an error i.e
selenium.common.exceptions.WebDriverException: Message: invalid argument: value must be a non-negative integer
I am not getting where i went wrong
I found similar issue raised by someone in this platform but my problem didn't get solved please help me in this regard
This error message...
selenium.common.exceptions.WebDriverException: Message: invalid argument: value must be a non-negative integer
...implies that the ChromeDriver was unable to initiate/spawn a new WebBrowser i.e. Chrome Browser session.
Your main issue is the incompatibility between the version of the binaries you are using as follows:
So there is a clear mismatch between the Selenium Client v3.6.8 , ChromeDriver v77.0 and the Chrome Browser v77.0
Ensure that:
@Test
as non-root user.driver.quit()
within tearDown(){}
method to close & destroy the WebDriver and Web Client instances gracefully.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With