How to run JavaScript functions or commands?

Your can use EXECUTE_JAVASCRIPT command to run any JavaScript command of interest. However, if you want to execute JavaScript and save the return of that script into variables to be used further down in your script, you can use GET_WEB_VALUE command, selecting Javascript as source, and including the script in the Script field.

The video at the end of this page performs the commands below:

1- This command runs the page [https://reference.subject-7.com]

Execute_Javascript HALT window.location.href = 'https://reference.subject-7.com'

 

2- This command gets the current page URL and assign it to the "url" variable

Get_web_value HALT url JAVA_SCRIPT false

 

3- This command runs the page [subject-7.com] on a different window.

Execute_Javascript HALT window.open("https://www.subject-7.com")

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.