[Android] Interacting with Browser or Just Backing Out

My Android app contains a link to an external website of the company that the app is for. My test involves clicking on the link which should open the default browser on the device to the specified URL.

I understand that once the browser opens I have limited amounts of information available since it doesn't have the Calabash hooks, but I am wondering if I can do any of the following:

  1. Tap the URL bar, copy the value and then evaluate on the value in the clipboard.
  2. Verify that a browser is open.
  3. Just hit the back button to go back to the application under test.


  • AlisonFernandesAlisonFernandes USMember ✭✭
    edited April 2015

    You can just open the link, wait for X seconds and take a screenshot (provided you manually check the result in the test).

    A better implementation can check the visible elements, if they change, the browser is probably opened. In a similar test case, I tapped the link, waited for X seconds and checked if the link was still visible tho.

Sign In or Register to comment.