Fixed – Selenium No such session error in Chrome
Lot of times I was getting no such session error for Chrome and this was constantly happening for different testcases and even for different Selenium and Chrome driver versions.
I tried having a delay as well as updating Chrome Driver/Remote WebDriver but those didn’t solve the issue
Atlast I fixed it by making this small change.
Instead of calling Remote WebDriver, I actually called Chrome Driver
// Browser = new RemoteWebDriver(new Uri("http://localhost:9515"), DesiredCapabilities.Chrome()); Browser = new ChromeDriver(); //Call ChromeDriver to fix no such session error