Screenshot(fileNameOfScreenshot)
This will capture a screenshot of the app at the current point in time. The screenshot file will be saved to the test output folder and with the name provided.
Note: Only jpeg and png files are supported.
Screenshot("buttonClicked.png")