I received an error. When I did a google search, I got some results but they were all for Android programming. I am automating a test using Windows, Java 1.8 and Selenium.
The error
org.openqa.selenium.WebDriverException: unknown error: cannot activate web view
My original code (that I did not write but am debugging and has worked):
// Clicks a link which opens a new window
action.moveToElement(el).click(el).build().perform();
Set<String> windows = driver.getWindowHandles();
for (String a: windows) {
Reporter.log(a);
driver.switchTo().window(a);
}
The error I got was that there was "no such window". So I thought maybe I needed to wait until the number of windows stabilized, so I added the following after clicking and before doing the windows stuff:
int winds = driver.getWindowHandles().size();
int owinds = winds - 1;
while (owinds != winds) {
Thread.sleep(1000);
owinds = winds;
winds = driver.getWindowHandles().size();
}
It is at this point, where it does the switch, that I get the
org.openqa.selenium.WebDriverException: unknown error: cannot activate web view
and as I mentioned before, everything in Google only talks about Android, which this is not.
Any thoughts would be welcome.