Reputation: 1
Android mobile app testing with appiumv1.6.5 and java-client-3.2.0. I can't access webelements in the mobile app home page. Home page is loaded, but there is an other window loaded saying "session is expired". No way to move that new window.
driver.switchTo().activeElement()/driver.switchTo().alert()
gives:
org.openqa.selenium.WebDriverException: Method has not yet been implemented
I checked the page source, when I call driver.getPageSource()
, it is hanging. I have to close mobile app through the device to move to the next step in the code.
Upvotes: 0
Views: 226
Reputation: 976
With new UI Automator you don't need to use switchTo method. Make you sure that you device's Android System WebView is up to date else you need to update through Google PlayStore. Once you update Android System WebView and try capture the elements using UIAutomator as you do normally and should see the elements inside webview in the UIAutomator's screenshot.
Upvotes: 0