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 2

1

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

Figure 3

2

Technical Reference

Figure 4

3

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

5.2.2