AnsweredAssumed Answered

Unable to launch Selenium Test in Firefox

Question asked by psrao on Mar 24, 2017
Latest reply on Mar 31, 2017 by psrao

Hi All,

 

I have recorded sample selenium script in Selenium builder and exported the script to JSON.

I have created DevTest Selenium test case and tried launching in Firefox driver but facing issues here.

 

Test case is launching web driver in Chrome and IE but not in Firefox,

 

We are using selenium.browser.type as Firefox, and not using  selenium.firefox.driver.path variable.

 

We have latest version of firefox 52 and configured DevTest plug in for it.

 

C:\Program Files (x86)\Mozilla Firefox

 

 

 

We are getting below exception,

 

java.lang.RuntimeException: Test run failed: unable to create driver.
at com.sebuilder.interpreter.TestRun.initRemoteWebDriver(TestRun.java:215)
at com.itko.lisa.glass.SeleniumScriptExecutor.executeStep(SeleniumScriptExecutor.java:370)
at com.itko.lisa.glass.SeleniumScriptExecutor.executeStep(SeleniumScriptExecutor.java:305)
at com.itko.lisa.glass.SeleniumScriptExecutor.executeScript(SeleniumScriptExecutor.java:147)
at com.itko.lisa.glass.SeleniumScriptTestNode.execute(SeleniumScriptTestNode.java:110)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1295)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1210)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1195)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1057)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:70)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:964)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.sebuilder.interpreter.TestRun.initRemoteWebDriver(TestRun.java:201)
... 13 more
Caused by: org.openqa.selenium.WebDriverException:
Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},
"visible":true,"active":true,"userDisabled":false,"appDisabled":false,
"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi",
"installDate":1489731081000,"updateDate":1489731081000,"applyBackgroundUpdates":1,"skinnable":true,"size":19587,"sourceURI":null,
"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],
"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.0.1","maxVersion":"52.0.1"}],"targetPlatforms":[],
"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false}

 

Can someone help in this regard.

 

Thanks in advance.

Outcomes