InjectJS Activity

When to use InjectJS Activity

This activity is used when you want to execute the Java Script code to implement its corresponding functions, such as hiding certain elements, disabling selected controls, inserting value in the selected field in the web page or to retrieve values, etc.

Figure 1

1

Drag and Drop an Open Web Browser activity. After spying, the input details will get updated. For more details on open web browser activity, refer the menu.

Proceed to drag and drop an InjectJS activity and connect it to the browser activity. Fill in all pertaining details in the Property Window. In the following example, JSScript value to pass in the URL is mentioned in the JSScript field. Execute.

Figure 1.1

 

web automation

 

The JSScript code is injected, and the value will be passed in the specified page of the selected URL

Figure 1.2

 

web automation

 

Technical Reference

Figure 1.3

 

web automation

Note: Specify the amount of time to wait for the activity to terminate (to be given in milliseconds.)

5.3.0