0

I use Selenide + Cucumber + IntellijIDEA and I want to get screenshot every time when @Then - inside only assertEquals - falls with java.lang.AssertionError.

How can I configure it? Now it makes screenshots every time when @When falls, but if it's @Then I can only see actual and expected values.

M M
  • 1
  • 5

1 Answers1

0

Check official documentation to understand how to manipulate with screenshot taking logic.

Selenide takes screenshots automatically on every test failure. And its a really good in-built feature, so I only see benefit if it gets screenshot even if you are on Given/When step cause it may help you to analyse why your test failed

dmle
  • 3,498
  • 1
  • 14
  • 22