Answer the question
In order to leave comments, you need to log in
How to switch windows in Winium?
Good afternoon!
I use for testing a desktop application (thick client) a library - Winium. I'm trying to switch to another window using the following code, but it doesn't work:
window = driverWinium.findElementByClassName("TNavigatorForm");
WebElement newWindow = driverWinium.findElement(By.className("TNavigatorForm"));
String newWindowHandle = newWindow.getAttribute("NativeWindowHandle");
driverWinium.switchTo().window(newWindowHandle);
window.click();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question