Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switching windows through winium #349

Open
nissysaju opened this issue Oct 4, 2021 · 0 comments
Open

switching windows through winium #349

nissysaju opened this issue Oct 4, 2021 · 0 comments

Comments

@nissysaju
Copy link

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant