Skip to main content

[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

ParameterParameter TypeRequiredDescription
imageFilePathStringYesAbsolute path of the image
flowControlFailureHandlingOptionalSpecify 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 + ")"
Was this page helpful?