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.
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
import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory
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
import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory
AppiumDriver<IOSDriver> driver = MobileDriverFactory.getDriver();
Hope this helps,
Chris