If the browser window is not in focus, all webdriver identifications on the current page fail.
How can the browser be brought into focus, using webdriver?
((JavascriptExecutor) webDriver).executeScript("window.focus();");
should do the trick!
1.4m articles
1.4m replys
5 comments
57.0k users