Skip to content

addScriptAndWait (UI Automation - Manipulation)

Compatible with:
  • Purpose
  • Generated from addScript(scriptContent, scriptTagId) 
  • Loads script content into a new script tag in the QaSCRIBE document. This differs from the runScript command in that runScript adds the script tag to the document of the AUT, not the QaSCRIBE document. The following entities in the script content are replaced by the characters they represent: < > & The corresponding remove command is removeScript.  
  • This command waits to complete it's action for a default timeout. The default timeout differs in QaSCRIBE and Worksoft SaaS Cloud Platform.
  • Syntax
  • addScriptAndWait(scriptContent, scriptTagId)
  • Target
  • scriptContent - the Javascript content of the script to add
  • Value
  • scriptTagId - (optional) the id of the new script tag. If specified, and an element with this id already exists, this operation will fail.
  • Return Value
  • N/A
 

Feedback and Knowledge Base