I’ve an issue with my IE browser when running selenium WebDriver java scripts. For a while it will run in front of the screen, at some point of time it’s going behind the screen and what ever other windows opened in the system comes to front. This is affecting the flow of the scripts run mostly. Can any one suggest a solution. Thanks !!!
I’ve an issue with my IE browser when running selenium WebDriver java scripts. For
Share
I’ve solved this issue to some extend by using window.focus() method. Where ever IE window goes behind the screen, we must use it to bring it back infront of the screen. Here’s the code snippet
((JavascriptExecutor)driver).executeScript("window.focus()");
Thanks 🙂