Loads script content into a new script tag in the Selenium document. This
differs from the runScript command in that runScript adds the script tag
to the document of the AUT, not the Selenium document. The following
entities in the script content are replaced by the characters they
represent:
<
>
&
The corresponding remove command is removeScript.
Namespace: SeleniumAssembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- scriptContent
- Type:
System String
the Javascript content of the script to add
- scriptTagId
- Type:
System String
(optional) the id of the new script tag. If specified, and an element with this id already exists, this operation will fail.
Implements
ISelenium AddScript(String, String)See Also