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

Unable to switch to new window / popup on Win10. #108

Open
PradeepaMK opened this issue May 5, 2020 · 0 comments
Open

Unable to switch to new window / popup on Win10. #108

PradeepaMK opened this issue May 5, 2020 · 0 comments

Comments

@PradeepaMK
Copy link

PradeepaMK commented May 5, 2020

Hey,

I am automating our windows application and every time a new window comes I see objects are not getting focused and the application is getting closed by default and action is being performed on a desktop.

This issue observed every time when a new popup/window comes up.
The workaround I found is to close and open the Winium.Desktop.Driver.Exe every time when a new window comes

But this solution doesn't work with the unattended mode of execution.

Below are few things I tried, and they didn't fix the issue.
1.

           WebElement SelectIndustryType= driver.findElement(By.name("ABC"));
	String child = driver.getWindowHandle().toString();  // An independent window.
	driver.switchTo().window(child);
	System.out.println("Child window handle: " + child);

// This code work's when the code is executed post closing and opening the Winium.Desktop.Driver.Exe
//Have tried with child parent architecture also.

2.
Tried to set active the windows using the native methods.

Please help with this.

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