Rapise Android Java Problems Checking the Screen

Monday, November 7, 2022
Avatar

Hello, as mentioned in another thread I'm testing a long-running Android Application.  The Application is processing many things very quickly and while it processes them the screen of the application updates.  I pausing and checking the screen every 10 seconds to see where things are at.

But unfortunately sometimes the objects on the screen are right in the middle of updating and so they don't exist for a brief moment (sub 100 ms). And when an object doesn't exist it seems like your test aborts immediately.

I have tried stuff like:

if (SeS('title') != null)

before I do my usual:

if (SeS('title').GetText() == "The Text I'm Looking For")

And that doesn't seem to help. When you call SeS('title') it throws an exception and aborts before even returning the fact that it is indeed null.

Anyone have any ideas on how to get around this?

 

1 Replies
Monday, November 7, 2022
Avatar
re: kevmiller Monday, November 7, 2022

Have you tried:

Global.DoWaitFor(‘title’)

 

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Monday, November 7, 2022
  • Last Reply: Monday, November 7, 2022
  • Replies: 1
  • Views: 1105