9 PENCE
9 PENCE

Reputation: 363

can cucumber take screenshot for every step

There is a functionality in JBehave with which you can get screenshot after every step is executed. There is something similar if one runs code with BrowserStack. Is there some code we can use, while using Cucumber and Selenium WebDriver? If so, can you please provide a link to a tutorial?

Upvotes: 1

Views: 1073

Answers (1)

orde
orde

Reputation: 5273

You can use an AfterStep. From the wiki:

AfterStep do |scenario|
  # Do something after each step.
end

Upvotes: 2

Related Questions