public static void saveScreenshot(LiferaySelenium liferaySelenium) throws Exception { _screenshotCount++; captureScreen( liferaySelenium.getProjectDirName() + "portal-web/test-results/functional/screenshots/" + _screenshotCount + ".jpg"); }
public static void saveScreenshotBeforeAction( LiferaySelenium liferaySelenium, boolean actionFailed) throws Exception { if (actionFailed) { _screenshotErrorCount++; } captureScreen( liferaySelenium.getProjectDirName() + "portal-web/test-results/functional/screenshots/" + "ScreenshotBeforeAction" + _screenshotErrorCount + ".jpg"); }