2012-05-18 5 views
7

Firefox를 3.6에서 12로 업그레이드 할 때. 나는 webdriver work.A를 만들 수 없습니다 이전에 FF3.6에서 만든 스크립트 FF12.Are 거기에 어떤 변화가 업그레이 드 후에 할 필요가 작동하지 않습니다. 다음 스크립트를 실행할 때 예외가 throw됩니다.Firefox를 업그레이드하는 중 Webdriver가 작동하지 않습니다.

org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; 

Build info: version: '2.12.0', revision: '14666', time: '2011-11-10 18:36:18' 
System info: os.name: 'Windows Vista', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0' 
Driver info: driver.version: FirefoxDriver 
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:107) 
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:149) 
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:78) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:128) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:79) 
    at script.Individual.TestGetQuotesPage(Individual.java:68) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:644) 
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:546) 
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:700) 
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1002) 
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137) 
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121) 
    at org.testng.TestRunner.runWorkers(TestRunner.java:909) 
    at org.testng.TestRunner.privateRun(TestRunner.java:618) 
    at org.testng.TestRunner.run(TestRunner.java:499) 
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:332) 
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:327) 
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:299) 
    at org.testng.SuiteRunner.run(SuiteRunner.java:204) 
    at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:915) 
    at org.testng.TestNG.runSuitesLocally(TestNG.java:879) 
    at org.testng.TestNG.run(TestNG.java:787) 
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73) 
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124) 
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: 
*** 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\admin\AppData\Local\Temp\anonymous4326webdriver-profile\extensions\webdriver-staging 
*** LOG addons.xpi: checkForChanges 
*** LOG addons.xpi: No changes found 

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start 

어떤 이유가있을 수 있습니까?

+0

2.21로 업그레이드하십시오. 효과가있을 것입니다. –

+0

예! 2.21 버전에서 잘 작동합니다. – Mandy

답변

14

이 작업을하려면 Selenium 버전을 업그레이드해야합니다. Firefox 12는 약 2.17-ish에서만 사용할 수 있습니다.

현재 2.21은 최신 버전입니다.

관련 문제