Execute Java Script
Executes javascript code in the context of the selected element. For security reasons, this activity is available only for executions using web driver. To execute a function on the selected web element, just use arguments[0] to refer to the selected element. For instance, to focus the selected element just use the following code "arguments[0].focus();"

#
Designer PropertiesSee Web Event Main Properties.
#
Properties
#
Web Event Main PropertiesSee Web Event Main Properties.
#
General PropertiesSee Web Event General Properties.
#
MiscSee Misc.
#
Out ErrorSee Out Error.
#
Out Properties#
Web Event Advanced PropertiesSee Web Event Advanced Properties.
#
ExampleFocus input control using javascript
In this example, we navigate to http://demo.guru99.com/test/newtours/register.php, focus "First Name" and then type "Bob" using the keyboard windows activity.