Wednesday, 14 August 2013

NotConnectedException is thrown while launching a firefox using firefox profile

NotConnectedException is thrown while launching a firefox using firefox
profile

Selenium jars: 2.34, Firefox version: 22.0
Please find below code:
FirefoxProfile firefoxProfile = new FirefoxProfile(new
File("C:\\Users\\admin\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\dww46q4q.default"));
WebDriver driver = new FirefoxDriver(firefoxProfile);
driver.get("https://www.google.com");
Firefox browser launches, however it is not navigating to google.com and
after some time i am getting this exception:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to
host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
When i am launching the firefox browser without using firefox profile,
then it's working fine, i.e., firefox browser launches,navigates to
google.com and No exception occurs

No comments:

Post a Comment