Hello,
I am looking for help with Wait for element present on Mobile(Android) Platform. Somehow wait for element present does not work as expected on the Mobile platform. Below is my code where i have give 10 as timeout. I am assuming it waits for 10 seconds for the element to be present on the webpage and then taps on the element. I tried GlobalVariable.G_LongTimeOut as well but that also dint work as expected( it did not wait for 10seconds (G_LongTimeOut=10) and jumped out and said could not find test object)
Mobile.tap(findTestObject(‘android.widget.ImageView3’), 10)
Mobile.waitForElementPresent(findTestObject(‘android.widget.ImageView2’), 10)
Mobile.tap(findTestObject(‘android.widget.ImageView2’), 10)
Mobile.waitForElementPresent(findTestObject(‘android.widget.Button1 - OK’), 10)
Mobile.tap(findTestObject(‘android.widget.Button1 - OK’), GlobalVariable.G_LongTimeOut)
Please let me know if you have any ideas/solutions/facing the same issue.
Thanks,
Ini