percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
70 stars 41 forks source link

POA Playwright changes #1598

Closed rishigupta1599 closed 1 month ago

rishigupta1599 commented 2 months ago

Changes:

  1. Made a common method captureScreenshot in WebdriverUtils which based on framework will decide to use the provider class to use for further execution.
  2. Shifted few common methods like percyScreenshotBegin, percyScreenshotEnd, browserstackExecutor in genericProvider as it is being used as base class.
  3. Also in constructor of these classes instead of taking each argument separately taking it as hash and assigning it to instance of object so that we can directly pass from child class without need to add every arguments from every child class.
  4. For Playwright Provider we needed following things to be passed for execution
    1. Page Guid
    2. MainFrame Guid
    3. browserstack sessionId to make percy call.