zinserjan / wdio-visual-regression-service

Visual regression service for WebdriverIO.
MIT License
102 stars 39 forks source link

Cucumber: take screenshots afterScenario hook #84

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi , I was wondering if there is a possibility to take a screenshot inside a afterScenario if yes can you please provide an example ? I tried with browser.saveElementScreenshot("imagename.png", ".vasq"); it does not seems to work, am I doing something wrong ? Thanks