Issue:
We are not able to execute tests on Safari browser which are developed using selenium builder and exported to Devtest as JSON. Even though we configured "selenium.browser.type=Safari" property in config file, we are getting an error as below
Step: Get
----------------------------------------------------------------------------
Message: Test run failed: unable to create driver.
----------------------------------------------------------------------------
Trapped Exception: Test run failed: unable to create driver.
Trapped Message: java.lang.RuntimeException: Test run failed: unable to create driver.
----------------------------------------------------------------------------
STACK TRACE
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:371)
at com.itko.lisa.glass.SeleniumScriptExecutor.executeStep(SeleniumScriptExecutor.java:306)
at com.itko.lisa.glass.SeleniumStep.execute(SeleniumStep.java:311)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1283)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1050)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:70)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:963)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)
Environment:
Devtest 9.0
OS MAC, Browser: Safari
Cause:
Driver jar file (selenium-safari-driver-2.46.0.jar) available in <Devtest_home>/lib/shared folder is causing an issue. Due to this, test cases built using Selenium builder are not able to run it on Safari browser.
Resolution:
Check with support team and get updated Safari driver jar (selenium-safari-driver 2.48.2.jar) and place it in Devtest to resolve the issue.