[Mobile] Wait For Element Present does not work with Mobile

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

Hello, I have the same issue as well, anyone from Katalon able to help?

Hello Katalon team,

I am facing the same issue. In a test case when I use this keyword, the test fails in the step where this keyword was used in the first seconds and does not wait a defined number of seconds.

I tried with different locators and the result was the same.

I have installed:

  • Appium 1.18.0-beta.1
  • Katalon Studio 7.6.1

Thank you in advance.

Hi @zhile

For this issue, please upgrade to v7.6.6.

1 Like