captureEntirePageScreenshot, for, if, storeEval, pause, open etc commands are used in this video tutorial.
You can use this command in your web automation testing and you can take screenshots of your specific test case or the situation which is not return success.