"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