[Mobile] Find Image Element
Note:
This keyword, available in version 7.2.0+, is for Katalon Studio Enterprise users only.
findImageElement
- Description: Find the mobile element that is recognized by the given image.
- Keyword syntax:
findImageElement(imageFilePath,flowControl)
-
Parameters:
- Name: imageFilePath
- Description: Absolute path of the image
- Parameter Type: String
-
Mandatory: Required
-
Name: flowControl
- Description: Control the execution flow if the step fails
- Parameter Type: FailureHandling
- Mandatory: Optional
-
Return: 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 + ")"