question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PopupWindow not visible to inspector (or driver)

See original GitHub issue

Using 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:open
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
aiwucommented, Sep 13, 2016

any updates on this?

0reactions
EvilOverlordXcommented, Sep 13, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found