DefaultSelenium AddScript Method WebDriver
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: Selenium
Assembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public void AddScript(
	string scriptContent,
	string scriptTagId
)

Parameters

scriptContent
Type: OnlineSystem String
the Javascript content of the script to add
scriptTagId
Type: OnlineSystem 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