Fail to connect to internet Firefox 53 launched with gecko 0 16 1

0 votes

I'm using the following configuration win 10 64-bit VS Enterprise 2017, C# testing project, Firefox 53.0.3 (64-bit) , Gecko driver geckodriver-v0.16.1-win64 , Selenium WebDriver v3.4.0

Below is the code:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using OpenQA.Selenium;

using OpenQA.Selenium.Firefox;


namespace Test

{

    class Program

    {

        static void Main(string args)

        {

            IWebDriver driver = new FirefoxDriver();

            driver.Navigate().GoToUrl("http://www.google.com");

        }

    }

}

When I run this program the Gecko driver starts and displays this:

1496673391949 geckodriver INFO Listening on 127.0.0.1:62736 1496673393128 geckodriver::marionette INFO Starting browser \\?\C:\Program Files\Mozilla Firefox\firefox.exe with args ["-marionette"]

A Firefox page is opened but after a while, a timeout error is displayed. Please help in this matter.

Jul 25, 2018 in Selenium by Martin
• 4,320 points
640 views

1 answer to this question.

0 votes

Below code will help you:

FirefoxProfile profile = new FirefoxProfile();

Proxy proxy = new Proxy();

proxy.IsAutoDetect = true;

profile.SetProxyPreferences(proxy);

IWebDriver driver = new FirefoxDriver(profile);

driver.Navigate().GoToUrl("http://www.google.com/");

answered Jul 25, 2018 by Samarpit
• 5,910 points

Related Questions In Selenium

0 votes
1 answer

Unable to connect to chromedriver 127.0.0.1:9515 on Amazon Linux AMI server

The issue seems to be only with ...READ MORE

answered Mar 26, 2018 in Selenium by nsv999
• 5,500 points
2,457 views
+1 vote
1 answer

Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.

This issue generally happens due to incompatibility ...READ MORE

answered Jun 1, 2018 in Selenium by bits1
• 120 points
11,208 views
0 votes
1 answer

Which Firefox version is compatible with Selenium 2.53.0?

I had the similar problem. For me, ...READ MORE

answered Jun 26, 2018 in Selenium by Meci Matt
• 9,460 points
2,098 views
0 votes
1 answer

Firefox Error: “Your connection is not secure” while launching driver with Selenium 3.0.1 using Java

Download Firefox 55 beta and set capabilities.setCapability("acceptInsecureCerts", true); Here ...READ MORE

answered Sep 17, 2018 in Selenium by Meci Matt
• 9,460 points
1,793 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,649 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,131 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,209 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,865 views
0 votes
1 answer

How to login a forum using Selenium with Python

You should try to directly log in ...READ MORE

answered Apr 27, 2018 in Selenium by Samarpit
• 5,910 points
2,751 views
0 votes
1 answer

Firefox browser not opening with given URL using Selenium Webdriver with Java

Download the latest selenium jar and replace ...READ MORE

answered Apr 30, 2018 in Selenium by Samarpit
• 5,910 points
7,775 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP