When I am trying to driver.close()
then I can get:
java.net.SocketException: Connection reset exception.
How to resolve it?
I'm writting a code like this:
driver.findElement(By.xpath("//*[text()='Log Out']")).click(); driver.close();
When I am trying to driver.close()
then I can get:
java.net.SocketException: Connection reset exception.
How to resolve it?
I'm writting a code like this:
driver.findElement(By.xpath("//*[text()='Log Out']")).click(); driver.close();
You have version problems
They all should be compatible with each other
For example, if you are using chrome browser version 'Version 95.0.4638.69'
you should have the same version for chromedriver.
To get rid of the residual chores generated during the test execution and interfere in your next test execution, instead of driver.close()
always invoke driver.quit()
within tearDown(){}
method to close & destroy the WebDriver and Web Client instances gracefully.