[Mobile] Tap on Image
Note:
Katalon Studio Enterprise license.
The
tapOnImage
keyword is not supported in headless browser mode.
Description​
Simulate toggling airplane mode on mobile devices. Support iOS real devices and Android emulators.
Keyword name: Mobile.tapOnImage
Parameters​
Param | Param 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​
true if the image presents. Otherwise, false.
Example​
You want to visually search for a UI element that matches the given image file, and tap on it when found:
Mobile.tapOnImage("/Users/myaccount/Desktop/image.png")