What would be the best alternative to use, instead of Thread.sleep here in this code?

17 Views Asked by At

enter image description here

Please make a note that, toast message disappears in a second hence failing every time, so far with only thread.sleep it is working. However, I should not use the static wait. Please help me.

I tried explicit wait with expected condition till the toast message is visible, but its not working.

0

There are 0 best solutions below