element.ExecuteJavaScript(code, [elementName])
element.ExecuteJavaScript(code, [elementName])
Variable | Description |
---|---|
code | The JavaScript code to evaluate. String. |
elementName | Optional: An optional name for the current element that can be used in the script, such as 'alert(currentElement.tagName);' opens a message box and displays the tag name of the current element. String. |