hi Ragvendra, I face same issue, when use quit() it not showing any error on console but when use close() it show org.openqa.selenium.remote.http.WebSocket$Listener onError. is there any solution for when we use only close () methods. pls share it
Adding remote-allow-origins argument to the ChromeDriver constructor may help you fix/resolve the warning. ChromeOptions options = new ChromeOptions(); options.addArguments("--remote-allow-origins=*"); WebDriver driver = new ChromeDriver(options);
1.Try adding latest selenium server jar/dependencies 2.be sure to quit/close/flush all driver instances before starting the script execution. Let me know if it works, share with me your test script/class file otherwise?
Try to pick the latest selenium dependencies from mvnrepository or add remote-allow-origins while initializing the driver, ChromeOptions options = new ChromeOptions(); options.addArguments("--remote-allow-origins=*"); WebDriver driver = new ChromeDriver(options);
Excellent showcasing of the root cause. thanks.
It was really tricky.Thanks for sharing.
Yes it was
Awesome it helped me. Thanks
Its working for me.Thank u so much😍
Glad to hear that
Worked for me . Thank You :)
thanks for your video , helped me a lot today
Thankyou its working for me.
You're welcome!
Thanks it worked
Glad it helped
hi Ragvendra, I face same issue, when use quit() it not showing any error on console but when use close() it show org.openqa.selenium.remote.http.WebSocket$Listener onError. is there any solution for when we use only close () methods. pls share it
Thank you
You're welcome
In PageObject model. I’m getting null pointer @Test part but it running @Beforetest well😢
But the purpose of using close() and quit() is totally different if I need to use close() then on that case what will be the solution ?
WIll it not be a problem if tests are executed in parallel ? driver.quit(); will close all instances of the browser especially ?
Adding remote-allow-origins argument to the ChromeDriver constructor may help you fix/resolve the warning.
ChromeOptions options = new ChromeOptions();
options.addArguments("--remote-allow-origins=*");
WebDriver driver = new ChromeDriver(options);
@@sdetadda options.addArguments("--remote-allow-origins=*") i added this option too...still resulting in same warning message unfortunately
1.Try adding latest selenium server jar/dependencies
2.be sure to quit/close/flush all driver instances before starting the script execution.
Let me know if it works, share with me your test script/class file otherwise?
Also ensure the driver and actual browser version matches/ are compatible.
Is it consider error or warning ?? cos in my case test case did not fail..
Its WARNING and seems harmless as long as test execution is concerned.
In my case it doesnt work changing to quit(), the error is showing again
Try to pick the latest selenium dependencies from mvnrepository or add remote-allow-origins while initializing the driver,
ChromeOptions options = new ChromeOptions();
options.addArguments("--remote-allow-origins=*");
WebDriver driver = new ChromeDriver(options);
I am using Chrome driver options as well as I use driver.quit(). I still get intermittent Socket Exceptions@@sdetadda
doesnt work
In my case it doesnt work changing to quit(), the error is showing again