addScript(UI Automation - Manipulation)
Compatible with:
- Purpose
- Loads script content into a new script tag in the document. This differs from the runScript command in that runScript adds the script tag to the document of the AUT, not the document. The following entities in the script content are replaced by the characters they represent: < > & The corresponding remove command is removeScript.
- Syntax
- addScript(scriptContent, scriptTagId)
- Target
- scriptContent - The name of the strategy to define; this should use only letters [a-z,A-Z] with no spaces or other punctuation.
- scriptTagId - (optional) the id of the new script tag. If specified, and an element with this id already exists, this operation will fail.
- Value
- N/A
- Return Value
- N/A