Launch safari on iPhone simulator, Safari browser is launched but is stuck at http://127.0.0.1:4723/welcome

Launch safari on iPhone simulator, Safari browser is launched but is stuck at http://127.0.0.1:4723/welcome. It refresh again and again but didn’t open url given in my driver object. Below is the Java Code

package testAppium;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import io.appium.java_client.ios.IOSDriver;
import io.appium.java_client.remote.MobileCapabilityType;

public class TestAppium {
public static AppiumDriver driver;

public static void main(String[] args) throws MalformedURLException, InterruptedException {
	// TODO Auto-generated method stub
	DesiredCapabilities capabilities = new DesiredCapabilities();

capabilities.setCapability(“deviceName”, “iPhone 6”);
capabilities.setCapability(“platformName”, “iOS”);
capabilities.setCapability(“platformVersion”, “9.2”);
capabilities.setCapability(CapabilityType.BROWSER_NAME, “safari”);
//driver = new IOSDriver(new URL(“http://127.0.0.1:4723/wd/hub”), capabilities);//instantiate driver
wd = new IOSDriver(new URL(“http://127.0.0.1:4723/wd/hub”), capabilities);//instantiate driver
wd.manage().timeouts().implicitlyWait( 30,TimeUnit.SECONDS);

	Thread.sleep(6000);
wd.get("https://www.google.co.in");  
}

}

There is no Error in Appium Log.

It keep refreshing with same address in address bar.

Any help is appreciated.

Thanks

Did you start ios-webkit-debug-proxy?

Hi

Thanks for reply. Problem sorted. I used WebDriver object and its working fine now.

Hi asjadtariq
Happy for that you were able to solve it,
can you please share with us the solution ?
Thanks in advance

could you please post solution. I am having this same issue

Do we have solution for this ?