on-internet
← Community

Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure

Stack Overflow ·

I am new to Selenium. Trying following code and it works for Firefox. When I try for Safari, getting error. package MyTestPkg; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.safari.SafariDriver; public class MyTestClass { public static void main(String[] args) { //WebDriver driver = new FirefoxDriver(); WebDriver driver =new SafariDriver(); driver.get("http://only-testing-blog.blogspot.in"); String i = driver.getCurrentUrl(); System.out.println(i); driver.close(); } } OSX 10.10.3 Selenium 2.46 Safari 8.0.6 ERROR Jun 22, 2015 5

Comments

Sign in or sign up to comment and upvote.

No comments yet.