-
This had been tested. Features include normal screenshot, fullpage scroll screenshot, compare screenshot in selenium webdriver chrome cucumber js.
-
See the link REPORTS https://seanlon.github.io/cucumber-js-selenium-fullpage-screenshot/reports/cucumber_report.html. Also see, https://seanlon.github.io/cucumber-js-selenium-fullpage-screenshot/index.html
-
Image for fullpage screenshot (images folder) 3b. Image for fullpage screenshot (images folder)
-
Image for two images visual comparisions screenshot(images folder)
-
To start
npm install
-
Follow your browser chrome version, example if 89
npm i --save chromedriver@^89.0.0
-
Run
npm run cucumber
ornpm run start
-
If your scenario failed, you can see the log in your console or check the
images/
folder for a screenshot of the error. -
Run
npm run cucumber-report
to generate a report. A browser window will automatically open after this. -
You can configure selenium chromedriver to be headless in
world.js
node-resemble
for visual regression comparisoncucumber js
v7 for e2e testingselenium chrome webdriver
andfullpage js
for fullpage screenshots