Run Javascript

This action is used to execute arbitrary javascript code within active Selenium browser instances.

Properties

Input

  • Instance: the TAPSeleniumInstance variable that will be used for injecting javascript

  • Javascript: the actual javascript code that will be executed.

  • Output: the name of the variable that will be used to store any value returned by the executed code (if any).

Misc

  • Display Name: action display name in your implementation project

  • Wait Before: number milliseconds robot to wait before executing the action.

  • Wait After: number milliseconds robot to wait until moving to the next action.

  • Abort on Error: True/False

  • Retry Times: Specifies the number of times to retry an action if it doesn't end successfully. Default value 0 (no retry); Use -1 if you want to retry indefinitely.

Use Case

Potential Use Cases

  • Inject custom debug javascript

  • Enhance or modify existing webpage behaviour

  • Change/alter the page DOM - contents and structure.

Last updated