getgauge-examples / java-gradle-selenium

A sample project illustrating Gauge features using webdriver
Apache License 2.0
39 stars 41 forks source link

Got an issue org.openqa.selenium.WebDriverException #12

Open AparnaShyam opened 8 years ago

AparnaShyam commented 8 years ago

Below is the full stack of the issue:

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
    at com.thoughtworks.gauge.example.pages.DriverFactory.Setup(DriverFactory.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:32)
    at com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.executeHook(HooksExecutor.java:98)
    at com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.execute(HooksExecutor.java:84)
    at com.thoughtworks.gauge.execution.HooksExecutor.execute(HooksExecutor.java:41)
    at com.thoughtworks.gauge.processor.MethodExecutionMessageProcessor.executeHooks(MethodExecutionMessageProcessor.java:55)
    at com.thoughtworks.gauge.processor.SuiteExecutionStartingProcessor.process(SuiteExecutionStartingProcessor.java:26)
    at com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:72)
    at com.thoughtworks.gauge.GaugeRuntime.main(GaugeRuntime.java:37)

Error Message: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 057705538,"updateDate":1472057705538,"applyBackgroundUpdates":1,"skinnable":true,"size":22012,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"47.0.1","maxVersion":"47.0.1"}],"targetPlatforms":[],"seen":true}

kashishm commented 8 years ago

@AparnaShyam Thanks for logging the issue. This issue is related to firefox and selenium compatibility. In the latest selenium version, the default firefox driver support has been removed. To run the tests on firefox, we need to use Marionette (Gecko) driver to launch Firefox which is still not stable enough(gives element not found and other erros).

For now, you can try running the tests using Chrome or older version of Firefox.