Reputation: 65
When I start an activity such solo.click(sth)
,
and then I am in a new activity. But when I run solo.getCurrentActivity()
, the returning message is not the current one actually. It's the former one.
However, when I enter solo.getview(blablabla)
, and then run solo.getCurrentActivity()
, it works again. I guess this is the waiting problem but I just don't know how to solve it. I've tried waitForActivity()
and something similar but it doesn't work very well.
Do any one have suggestion?
Upvotes: 2
Views: 176
Reputation: 65
Finally after several days I have found the answer. The solo.getCurrentActivity(yourAct,time) works. It's much safer than before now.
Upvotes: 1