How to Send an Android Application to Background and Reopen It

Test Automation.

How to Send an Android Application to Background and Reopen It

3 minutes readKey takeaways Backgrounding and resuming is where state bugs surface, so it belongs in the test suite. Use the driver's background call rather than simulating a home press. Verify state after resume, not just that the app reopened. Navigating the Android application state transitions is a vital skill for testers and developers alike. It’s particularly… Read more »

Find all the Links on a Webpage with Selenium WebDriver in Java

Test Automation.

Find all the Links on a Webpage with Selenium WebDriver in Java

3 minutes readKey takeaways findElements with By.tagName("a") returns every anchor, including ones that are not visible. Filter on getAttribute("href") before using them, since many anchors have no destination. For link checking, collect the URLs first and request them outside the browser. Navigating through a webpage and cataloging every single link can be a daunting task, especially if… Read more »