Selenium 3 & Firefox 50

1,676 views
Skip to first unread message

Jim Byrnes

unread,
Nov 23, 2016, 4:57:39 PM11/23/16
to seleniu...@googlegroups.com
Ubuntu 14.04
Selenium 3.0.1
Firefox 50.0
Selenium-server-standalone-2.53.0.jar
Geckodriver dated 10-10-16 (is on my path)

Getting the following message:

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

Googling turns up lots of hits but they seem to be about Firefox 47 and
Selenium 2.xx.

I get that error running this little test script.

from selenium import webdriver

desired_caps = {}
desired_caps['platform'] = 'LINUX'
desired_caps['browserName'] = 'firefox'
driver = webdriver.Remote('http://127.0.0.1:4444/wd/hub', desired_caps)
driver.get('http://www.yahoo.com')

This is my first attempt at using the standalone server so maybe I am
doing something wrong.

Regards, Jim

Andreas Tolfsen

unread,
Nov 23, 2016, 5:08:09 PM11/23/16
to seleniu...@googlegroups.com
Jim Byrnes <jf_b...@comcast.net> writes:

> Ubuntu 14.04
> Selenium 3.0.1
> Firefox 50.0
> Selenium-server-standalone-2.53.0.jar
> Geckodriver dated 10-10-16 (is on my path)
>
> Getting the following message:
>
>   Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.

It would be useful if you could produce a verbose log from geckodriver.
See the README on how to crank up the logging verbosity:

https://github.com/mozilla/geckodriver#log-object

Jim Byrnes

unread,
Nov 23, 2016, 8:26:17 PM11/23/16
to seleniu...@googlegroups.com
Here is a pastebin link of the logging:

http://pastebin.com/d1euGs4Y



Andreas Tolfsen

unread,
Nov 24, 2016, 9:11:28 AM11/24/16
to seleniu...@googlegroups.com
It doesn’t look like the verbose output from Marionette is included
there. I notice you’re using the Python bindings, so you should check
if geckodriver.log in your CWD has any more information.

Moises Siles

unread,
Nov 24, 2016, 11:50:02 AM11/24/16
to seleniu...@googlegroups.com
Hi,

are you using geckodriver?

I think you should use something like 

System.setProperty("webdriver.firefox.marionette","G:\\Selenium\\Firefox driver\\geckodriver.exe");
 
             // if above property is not working or not opening the application in browser then try below property
 
             //System.setProperty("webdriver.gecko.driver","G:\\Selenium\\Firefox driver\\geckodriver.exe");
 
            WebDriver driver = new FirefoxDriver();
 




--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/o153b8%24hr7%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Jim Byrnes

unread,
Nov 24, 2016, 12:55:50 PM11/24/16
to seleniu...@googlegroups.com
On 11/24/2016 10:49 AM, Moises Siles wrote:
> Hi,
>
> are you using geckodriver?
>
> I think you should use something like
>
> System.setProperty("webdriver.firefox.marionette","G:\\Selenium\\Firefox
>
>
driver\\geckodriver.exe");
>
> // if above property is not working or not opening the application in
> browser then try below property
>
> //System.setProperty("webdriver.gecko.driver","G:\\Selenium\\Firefox
> driver\\geckodriver.exe");
>
> WebDriver driver = new FirefoxDriver();
>
>
> http://learn-automation.com/use-firefox-selenium-using-geckodriver-selenium-3/

Hi Moises,

Yes, I am using the geckodriver. I did see that link when I was
googling for a solution, but it seems to be fore Windows and Java while
I am using Linux and Python.

Regards, Jim

> On Wed, Nov 23, 2016 at 3:57 PM, Jim Byrnes
> <jf_b...@comcast.net> wrote:
>
>> Ubuntu 14.04 Selenium 3.0.1 Firefox 50.0
>> Selenium-server-standalone-2.53.0.jar Geckodriver dated 10-10-16
>> (is on my path)
>>
>> Getting the following message:
>>
>> Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
>>
>> Googling turns up lots of hits but they seem to be about Firefox 47
>> and Selenium 2.xx.
>>
>> I get that error running this little test script.
>>
>> from selenium import webdriver
>>
>> desired_caps = {} desired_caps['platform'] = 'LINUX'
>> desired_caps['browserName'] = 'firefox' driver =
>> webdriver.Remote('http://127.0.0.1:4444/wd/hub', desired_caps)
>> driver.get('http://www.yahoo.com')
>>
>> This is my first attempt at using the standalone server so maybe I
>> am doing something wrong.
>>
>> Regards, Jim
>>
>> -- You received this message because you are subscribed to the
>> Google Groups "Selenium Users" group. To unsubscribe from this
>> group and stop receiving emails from it, send an email to
>> selenium-user...@googlegroups.com.
>>
>>
To post to this group, send email to
seleniu...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/ms
>> gid/selenium-users/o153b8%24hr7%241%40blaine.gmane.org. For more
>> options, visit https://groups.google.com/d/optout.
>>
>


Jim Byrnes

unread,
Nov 25, 2016, 3:19:21 PM11/25/16
to seleniu...@googlegroups.com
Sorry for the delay in getting back to you. As I was trying to get the
info you requested I discovered that nothing had been written to the
geckodriver.log since Nov 19. After awhile I realized that was about the
time I started experimenting with the standalone server. As a test I ran
a small working non-server script and info was written to the log.

It seems that I some how must not have been using the geckodriver when I
was experimenting with the standalone server. Once I figure out what I
was doing wrong maybe the error will go away.

Regards, Jim

Reply all
Reply to author
Forward
0 new messages