PopupWindow not visible to inspector (or driver)
See original GitHub issueUsing selendroid 0.17, I can’t detect the contents of a popup window within my app, and was able to reproduce this in the selendroid test app: http://central.maven.org/maven2/io/selendroid/selendroid-test-app/0.17.0/selendroid-test-app-0.17.0.apk
Sample code:
driver.findElement(By.id("showPopupWindowButton")).click();
Thread.sleep(2000); //account for animation delay
String pageSource = driver.getPageSource();
System.out.println("Is popup window detected? Expect true: " + String.valueOf(pageSource.contains("Dismiss")));
Just scanning the source code for “Dismiss” label which is on the button since I can’t find it’s element ids. The view hierarchy looks the same before and after I click the showPopupWindowButton
The screenshot in the inspector shows the app screen with the popup missing, even though it appears in the emulator.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5
Top Results From Across the Web
Android popupwindow not seen by Appium - Stack Overflow
When I use the inspector in Appium desktop it doesn't see the elements but they do show up in the screenshot it displays....
Read more >PopupWindow - Android Developers
This class represents a popup window that can be used to display an arbitrary view. The popup window is a floating container that...
Read more >How to handle Alert box / Pop up using JAVA for Android?
Some alerts from the native apps can be identified by the inspector, but there are some which are not identified, like I am...
Read more >Attribute inspector in popup problem - Esri Community
Using the attribute inspector sample as inspiration I have it up and running. The problem is the inspector is shown only on the...
Read more >How to handle PopUps and Alerts in Selenium with examples?
To switch the control to the recently opened pop up window Driver.switchTo().alert(); is used; Alert is accepted using alert.accept(); ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
any updates on this?
Given that they’ve been on 0.17.0 for quite some time, I expect not. With Android 7 coming, the project is really falling behind.