Winium.Desktop icon indicating copy to clipboard operation
Winium.Desktop copied to clipboard

switching windows through winium

Open nissysaju opened this issue 4 years ago • 0 comments

I am automating an application where I have to click elements on next window after login . Below is the issue that I am observing, which is making my scripts fail.

Login is a small splash screen , which opens and I entered the Username and password correctly and logged in successfully

After that another screen is open(containing further functionalities) , and I'm able to locate the new window and but not able to click anything in that window.

I tried using this (web element is found , and line "the order button" gets printed but then no action is performed)

WebElement loginFrame = driver.findElementByClassName("classname of 2nd screen"); System.out.println("Click the Orders Button ............."); loginFrame.findElement(By.name("button")).click();

If anybody knows how to handle the switching between the windows or have any suggestions . Please let me know .

nissysaju avatar Oct 04 '21 07:10 nissysaju