I have a TabHostActivity that has 4 tabs (and 4 corresponding Activities). When in the test I click on one of them("Search")
the SearchActivity should appear (and it actually does). The problem is that in Robotuim-test I try to wait for this activity using solo.waitForActivity()
and it fails even if the Activity is on the screen. Also all view of this activity are not available via solo.getView()
- returns nulls.
If solo.waitForActivity()
doesn't work, you can use solo.sleep(time)
and followed by solo.assertCurrentActivity("not desired activity", Activity.class)
to confirm that you are in desired activity. And you can continue with further action performance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With