[Mobile] Find Image Element
Important:
Katalon Studio Enterprise license.
Description
Find the mobile element that is recognized by the given image.
Keyword name: Mobile.findImageElement
Parameters
Parameter | Parameter Type | Required | Description |
---|---|---|---|
imageFilePath | String | Yes | Absolute path of the image |
flowControl | FailureHandling | Optional | Specify failure handling schema to determine whether the execution should be allowed to continue or stop. |
Returns
The first found WebElement that is recognized by the given image.
Example
WebElement element = Mobile.findImageElement("/Users/myaccount/Desktop/image.png")
println "Element found at: (" + element.getPosition().x + ", " + element.getPosition().y + ")"