"SCREEN_SHOT" Command

escription: This command takes a screenshot of a locator, browser or the entire screen and stores it in a variable.

Usage Scenario: Suppose we want to take a screenshot of the Communities list on our Reference app.

Procedure: Define steps that lead up to the Communities page and define your step with Screen_Shot command. Set the command type to be “Browser” which will take a screenshot of the browser. Your step will look like this:

image-20240223-115158.png

See the Test Library path: subject7_samples/subject7_intermediate_suite/subject7_existing_communities_screenshot

The video following video demonstrates how two screenshots are taken from the browser and saved variables as part of execution of “subject7_existing_communities_screenshot” test case in “subject7_samples” folder: