# Run Javascript

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

## **Properties**

<figure><img src="https://649489153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSSr3DfBuOYIkk2T9ec%2Fuploads%2FyeuMsvz2RpVRyQvEBgav%2Fimage.png?alt=media&#x26;token=85ca4652-cf08-451c-818b-2cbdd74e162c" alt=""><figcaption></figcaption></figure>

### **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.&#x20;

## **Use Case**

### **Potential Use Cases**

* Inject custom debug javascript
* Enhance or modify existing webpage behaviour
* Change/alter the page DOM - contents and structure.
