How to launch web app in iPhone safari browser

Hello All,

I am trying to complete my collage assignment, I am trying to automate web application in iPhone (11.4.1) , could anybody help me how to launch web app in iPhone safari browser.

Current resource:-
MAC OS:- 10.3.6
Appium: 18.1 (install with node)
iPhone: 11.4.1
Xcode: 9.4.1

I am using below DC:-
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(MobileCapabilityType.DEVICE_NAME, “iPhone 6”);
cap.setCapability(“udid”, “1XXX”);
cap.setCapability(“automationName”, “XCUITest”);
cap.setCapability(“platformName”, “ios”);
cap.setCapability(MobileCapabilityType.BROWSER_NAME, “safari”);

I can launch native application but unable to launch web application.

Thanks in advance.

Please use below capabilities

capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, “iOS”);
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, “12.1”);
capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, “Safari”);
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, “iPhone XR”);
URL url = new URL(“”);
AppiumDriver driver = new AppiumDriver(url, capabilities);

First it will install webdriver agent if not installed and then launches the safari browser

Hope it works for you the way it did for me…:slight_smile: