Selenium WebDriver keine Verbindung mit Firefox 20
Ich bin mit selenium-server-standalone-2.28.0.jar .
Startete die hub-und
Startete die listener mit dem folgenden Befehl
"C:\Program Files (x86)\Java\jre7\bin\Java.exe" -jar selenium-server-standalone-2.28.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 5557 -browser "browserName=firefox",maxInstances=5,platform=WINDOWS,javaScriptEnabled=true,TAKES_SCREENSHOT=true
Ein leeres Firefox-Fenster geöffnet und dann folgende Fehlermeldung wird angezeigt:
Execute
System.InvalidOperationException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\PR~1.GRO\AppData\Local\Temp\anonymous768293325561108937webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on [email protected] installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
*** LOG addons.xpi: New add-on [email protected] installed in winreg-app-global
*** LOG addons.xpi: New add-on avg@toolbar installed in winreg-app-global
*** LOG addons.xpi: New add-on [email protected] installed in winreg-app-global
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi-utils: Database closed
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\PR~1.GRO\AppData\Local\Temp\anonymous768293325561108937webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) in c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs:line 1002
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) in c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs:line 844
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) in c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs:line 809
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) in c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs:line 85
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities, TimeSpan commandTimeout) in c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs:line 117
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities) in c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs:line 106
at SHL.Test.Selenium.ScreenShotRemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities) in C:\Preethi\vs1\WebTest\SeleniumWebTest\Framework\SHL.Test.Selenium\ScreenShotRemoteWebDriver.cs:line 9
at SHL.Test.Selenium.TestContext..ctor(Action testRun, ITestEnvironment testEnvironment, DesiredCapabilities desiredCapabilities) in C:\Preethi\vs1\WebTest\SeleniumWebTest\Framework\SHL.Test.Selenium\TestContext.cs:line 31
at SHL.Test.Selenium.TestBase.InitSelenium(DesiredCapabilities desiredCapabilities, ITestEnvironment testEnvironment, Action testRun) in C:\Preethi\vs1\WebTest\SeleniumWebTest\Framework\SHL.Test.Selenium\TestBase.cs:line 112
Debugging, ging auf den Firefox-browser add-ons Liste und fand, dass Firefox-webDriver ist nicht kompatibel mit Firefox 20.0
Aktuelle Firefox-webdirver version 2.28.0
Die neueste Firefox-version kann ich verwenden oder gibt es eine alternative für dieses Problem?
Versuchen Sie, Selen-version 2.32.Es funktioniert gut für Firefox 20.
InformationsquelleAutor user1984004PRI | 2013-04-04
Du musst angemeldet sein, um einen Kommentar abzugeben.
Verwendung der neuesten version statt. jetzt 2.32.0
sehen http://docs.seleniumhq.org/download/
oder als direkten download http://selenium.googlecode.com/files/selenium-server-standalone-2.32.0.jar
es funktioniert für mich
InformationsquelleAutor Lazy Ants
Firefox 20 hat nur gerade aus, es wird wohl noch ein paar Tage für die Selen-devs zu beheben Kompatibilitätsprobleme, die entstanden sind.
Die neueste version von Selenium ist 2.31.0 (verfügbar hier), die Arbeit mit Firefox 19.0.2. Jede version von Selen unter 2.30.0 funktioniert nicht mit FireFox 19 und nach oben, so würde ich vorschlagen, Sie versuchen, die Aktualisierung von Selen in der neuesten version.
Klar zu sein, habe ich noch nicht heruntergeladen und ausprobiert, FireFox 20, also ich weiß nicht wie kompatibel Selen 2.31.0 ist.
InformationsquelleAutor Ardesco
Ich habe Ubuntu 12.04 64bit. Selen aufgehört zu arbeiten nach dem letzten update auf 20. Ich war mit Eclipse (JDK 7). Ich änderte Eclipse.ini zu verwenden JDK 6 statt und es begann zu arbeiten.
Webdriver hängt einmal in eine Weile, funktioniert aber die meiste Zeit(Es könnte ein Problem mit der website, die ich Teste, wie gut). Um sicher zu sein, habe ich jetzt deaktiviert, Firefox auto-updates.
InformationsquelleAutor Balajee