How can I use timeout less the 1 second in builtinKeywords

It would be possible for you to create a custom keyword which works almost the same as Mobile.verifyElementVisible but accepts the timeout in milli-second order.

You can read the full Groovy source code of the Mobile.verifyElementVisible at

At the LINE#72, you see

            WebElement element = findElement(to, timeout * 1000)

This line is the very reason why the timeout value is treated as seconds-basis, not milli-seconds-basis.

You can create your custom keyword with new package name and class name. You want to copy the source the Mobil.verifyElementVisible into it. Then change the LINE#72 to

            WebElement element = findElement(to, timeout)

Then your custom keyword would work on milli-seconds basis.

1 Like