I am implementing payment test automation for my Android app. The purchase is handled by the Play Store itself.
When I click on a ‘Purchase Credits’-Button inside my app a popup from the Play Store appears:
(just ignore the error message - I am using a dev version not supposed to be sold in the store)
Now I am not able to reach any element inside the popup with Appium. Trying to click on the green OK-button produces
`org.openqa.selenium.NoSuchElementException: Can’t locate an element by this strategy: Locator map:
- native content: “By.id: continue_button” `
Just to be sure the test waits about 5 seconds for the popup to become fully visible. Nonetheless when calling driver.getPageSource()
I just seem to get the view hierarchy of the underling app, but not the popup itself.
At the same time the popup is perfectly visible and reachable inside both the uiautomator
as well as the Appium Inspector.
The app is an native app. The test implementation is in Java.
Any ideas as to how to solve this issues will be much appreciated.