0

After Launching browser in selenium web driver using Java and windows not passing URL in web address and it does not open URL.

Thanks

Himanshu
  • 4,327
  • 16
  • 31
  • 39
  • what code you have tried? What error you getting? Which browser you are using?? – Helping Hands Apr 08 '15 at 05:35
  • WebDriver driver=new FirefoxDriver(); driver.get("https://www.google.co.in"); it does not open google alreday i have updated jar file as well Firefoxbrowser but getting same issues. – MUNNA KUMAR MODI Apr 08 '15 at 11:39

4 Answers4

0

Try to give protocol http in driver.get() as

driver.get("http://google.co.in");

If not will throw webDriverException

nitin chawda
  • 1,378
  • 11
  • 24
  • Already i have applied protocol but getting error unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. firefox console output and i have also checked with latest version selenium webdriver and latest version of filefox but getting same error. – MUNNA KUMAR MODI Apr 09 '15 at 05:13
  • Please check if the port 7055 is free if running in background – nitin chawda Apr 09 '15 at 05:37
0

driver.get("google.co.in"); will not work.

You should specify the protocol that you will be using like http or https.

Use driver.get("http://google.co.in");

Rameshwar
  • 541
  • 6
  • 22
  • 1
    Already i have applied protocol but getting error unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. firefox console output and i have also checked with latest version selenium webdriver and latest version of filefox but getting same error. – MUNNA KUMAR MODI Apr 09 '15 at 05:11
0

Check the compatibility of Firefox version and Selenium version.

Try out Firefox 30 with Selenium 2.45 and use

driver.get("http://www.google.co.in");

It will work.

Pooja
  • 136
  • 4
  • this has been giving me hell for a full day now. i have tried installing older versions,and also tried Firefox 30 with Selenium 2.45 but stilll getting same issues i cant escape this error! help would be greatly appreciated! – MUNNA KUMAR MODI Apr 09 '15 at 06:58
  • Error log:-Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: 1428561678308 addons.manager DEBUG Application has been upgraded 1428561678317 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"] 1428561678319 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"] 1428561678321 addons.xpi DEBUG startup – MUNNA KUMAR MODI Apr 09 '15 at 06:59
  • could post the code that you have used to create the firefox driver? – Rameshwar Apr 09 '15 at 11:33
  • driver=new FirefoxDriver(); driver.get("https://www.google.co.in/?gfe_rd=cr&ei=dmIiVZekCsqDuASWqYHgCA&gws_rd=ssl"); driver.close(); – MUNNA KUMAR MODI Apr 10 '15 at 09:55
0

Please refer to the same error reported earlier in stackoverflow Webdriver Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

hope this helps.

Is firefox browser launching? which OS are you using. Also please refer to my earlier answer, did you try

driver.get("http://www.google.co.in");
Community
  • 1
  • 1
Pooja
  • 136
  • 4