Failed to start up socket within 45000

前端 未结 5 569
孤街浪徒
孤街浪徒 2021-01-01 17:14

I\'m using FF version 19

it was all working fine till yesterday and suddenly today morning i start getting this error and i have the same exact code that was running

相关标签:
5条回答
  • 2021-01-01 17:45

    Firefox 19 'support' was added in Selenium's latest versions. So since you are using .NET, the direct download for the latest at the time of this post is version 2.31.2:

    selenium-release.storage.googleapis.com/index.html

    0 讨论(0)
  • 2021-01-01 17:53

    If Upgrading Webdriver doesn't help you can downgrade FireFox that will solve issue.

    0 讨论(0)
  • 2021-01-01 17:56

    I have this issue with Firefox 43 and Selenium 2.48. It happens when your Selenium driver server is running in a 32 bit process and you start the 64 bit version of Firefox.

    The cause is that the webdriver server tries to connect to port 7055 which should be opened by the webdriver that runs in the Firefox executable. But you can see in TcpView from www.sysinternals.com that Firefox does not open this port. So the driver waits until his timeout (45 seconds) elapses.

    This happens even after turning off the Windows Firewall completely.

    All posts that I found in internet do NOT help: Upgrade Selenium, downgrade Firefox, etc..

    But after installing the 32 bit version of the same Firefox 43 it works. I see in TcpView how Firefox 32 bit opens the port correctly:

    In my code I use

    FirefoxProfile Prof = new FirefoxProfile();
    FirefoxBinary  Bin  = new FirefoxBinary(sBrowserExe);
    mDriver = new FirefoxDriver(Bin, Prof);
    

    With sBrowserExe = "C:\Program Files\Mozilla Firefox 43\firefox.exe" the 64 bit version of Firefox 43 is started and I get the timeout exception.

    With sBrowserExe = "C:\Program Files (x86)\Mozilla Firefox 43\firefox.exe" the 32 bit version of Firefox 43 is started and it works!


    UPDATE: The developers from Firefox now broke Selenium support COMPLETELY. New Firefox versions from 48 upwards need a digital signature for all extensions to be installed.

    https://wiki.mozilla.org/Addons/Extension_Signing

    What I don't understand is why Selenium people cannot get a signature for the current Selenium driver??

    Firefox version 47.0 has a bug that does not allow to use it with Selenium. This bug has been fixed in version 47.0.1.

    Firefox versions from 48.0 and above do not install the old Selenium driver anymore. They must be automated with Marionette (= Gecko) driver.

    The problem is that Marionette is still beta and has a lot of missing features so there is currently no solution to automate the new Firefox versions.

    As you see here the new driver is full of bugs: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver/status

    0 讨论(0)
  • 2021-01-01 18:03

    Install all the updates in your Nuget package manager. Restart IDE.

    Downgrading firefox version is not recommended for testing. But last but one version downgrade sounds good.

    This solution worked for me.

    0 讨论(0)
  • 2021-01-01 18:04

    Which version of Selenium IDE you are using? Try downgrading the Firefox version. The release notes of selenium IDE is mentioned in below link.

    https://code.google.com/p/selenium/wiki/SeIDEReleaseNotes

    Hope this helps.

    0 讨论(0)
提交回复
热议问题