/
"EXECUTE_JAVASCRIPT" Command

"EXECUTE_JAVASCRIPT" Command

Description: This command is used to execute one or several JavaScript commands.
Usage Scenario: Suppose we want to use a simple JavaScript command on Reference app to move back to the previously opened page on the browser (list of Communities) so that another community can be selected and a new logo image uploaded to it.

Procedure: Define steps that lead up to opening the first community and enter “history.go(-1)” as your JavaScript command. Once the first Community is updated, the JavaScript command will execute and move back to the Community list. Your steps will look like this:

image-20240606-164820.png
image-20240606-164808.png

See the Test Library path: subject7_samples/subject7_advanced_suite/subject7_add_community_image

 

Related content

"EXECUTE_COMMAND" Command
"EXECUTE_COMMAND" Command
Read with this
"SWITCH_WINDOW" Command
"SWITCH_WINDOW" Command
More like this
"VERIFY_REST" Command
"VERIFY_REST" Command
Read with this
"SWITCH_FRAME" Command
"SWITCH_FRAME" Command
More like this
"DESKTOP_VERIFY" Command
"DESKTOP_VERIFY" Command
Read with this
Replace Steps
Replace Steps
More like this