Hi All,
Have you ever wondered your test case was running fine when executed individually and failing when it was running in a batch of 50 to 100? It would say element not found and you can see that the element is displayed but Appium simply couldn’t find that. The worst part is, it would occur in different places at different times.
I overcame that issue by using driver.getpagesource(). So, before performing an operation on an object, my function would be polling for the object with driver.getpagesource() and wait for the visibility of the object. This works well in batch execution.
Thanks,
Jerald