Skip to main content

[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

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