Hi,
I tried the above code and I am getting the below mentioned error.
It seems that there is no method “getDriver()” found for class'org.openqa.selenium.chrome.ChromeDriver'.
============================================================================
| Error in Script
============================================================================
| Step: Execute script (JSR-223)
----------------------------------------------------------------------------
| Message: bsh.EvalError: Sourced file: inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' : Error in method invocation: Method getDriver() not found in class'org.openqa.selenium.chrome.ChromeDriver' : at Line: 5 : in file: inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' : driver .getDriver ( )
in inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' at line number 5
----------------------------------------------------------------------------
| Trapped Exception: bsh.EvalError: Sourced file: inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' : Error in method invocation: Method getDriver() not found in class'org.openqa.selenium.chrome.ChromeDriver' : at Line: 5 : in file: inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' : driver .getDriver ( )
in inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' at line number 5
| Trapped Message: javax.script.ScriptException: bsh.EvalError: Sourced file: inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' : Error in method invocation: Method getDriver() not found in class'org.openqa.selenium.chrome.ChromeDriver' : at Line: 5 : in file: inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' : driver .getDriver ( )
in inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' at line number 5
----------------------------------------------------------------------------
STACK TRACE
- javax.script.ScriptException: bsh.EvalError: Sourced file: inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' : Error in method invocation: Method getDriver() not found in class'org.openqa.selenium.chrome.ChromeDriver' : at Line: 5 : in file: inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' : driver .getDriver ( )
in inline evaluation of: ``import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.D . . . '' at line number 5
at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:102)
at bsh.BshScriptEngine.eval(BshScriptEngine.java:61)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:669)
at com.itko.lisa.test.ScriptExecHandler.executeScript(ScriptExecHandler.java:426)
at com.itko.lisa.test.UserScriptNode._execute(UserScriptNode.java:202)
at com.itko.lisa.test.UserScriptNode.execute(UserScriptNode.java:172)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1280)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1195)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1180)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1048)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:961)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)
Thanks
Ragini