Class Screenshot

java.lang.Object
jp.co.moneyforward.autotest.actions.web.Screenshot
All Implemented Interfaces:
Act<com.microsoft.playwright.Page, com.microsoft.playwright.Page>

public class Screenshot extends Object implements Act<com.microsoft.playwright.Page, com.microsoft.playwright.Page>
An act that does screenshot. The browser screenshot is saved under ExecutionEnvironment#testOutputFilenameFor("screenshot-{stepName}.png"), where {stepName} is one of beforeAll, beforeEach, afterEach, or afterAll.
See Also:
  • Constructor Details

    • Screenshot

      public Screenshot()
      Creates an instance of this class.
  • Method Details

    • perform

      public com.microsoft.playwright.Page perform(com.microsoft.playwright.Page value, ExecutionEnvironment executionEnvironment)
      Performs the screenshot action.
      Specified by:
      perform in interface Act<com.microsoft.playwright.Page, com.microsoft.playwright.Page>
      Parameters:
      value - A page for which screenshot is executed.
      executionEnvironment - An execution environment.
      Returns:
      The page object itself given as value parameter.