typecast in javascript code example
Example 1: js variable to string
`String text ${expression}`
Example 2: typecasting javascript
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript(Script,Arguments);
`String text ${expression}`
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript(Script,Arguments);