IOS testing - How to initialize driver object for IOSDriver class in Katalon

In web application, we initialize the web driver as;
WebDriver driver= DriverFactory.getWebDriver()

How to initialie driver for IOSDriver?
IOSDriver driver= ???

Please help me here.

Hi @Kumar.Sushobhan,

I prefer to initialize the more generic AppiumDriver if I can, since the interface is shared between IOSDriver and AndroidDriver:

import io.appium.java_client.AppiumDriver

AppiumDriver<?> driver = MobileDriverFactory.getDriver();

If you really need the IOSDriver, you can be more specific:

import io.appium.java_client.ios.IOSDriver
import io.appium.java_client.AppiumDriver

AppiumDriver<IOSDriver> driver = MobileDriverFactory.getDriver();

Hope this helps,