Unable to automate device 'shake' for iOS simulator

I want to automate ‘shake’ action for iOS simulator, to change servers in application.

Couldn’t find any mobile keywords. Is there any way I can automate that in Katalon?

Katalon version: 8.2.5


Katalon Studio doesn’t provide this keyword yet.

You can use the workaround by using this script:

import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory

import io.appium.java_client.MobileDriver
import io.appium.java_client.ios.ShakesDevice

MobileDriver driver = MobileDriverFactory.getDriver()
((ShakesDevice) driver).shake()

1 Like

It worked. Thanks :grinning: