selenium-cucumber-js icon indicating copy to clipboard operation
selenium-cucumber-js copied to clipboard

AfterScenario detect if scenario failed or no

Open vhugogarcia opened this issue 7 years ago • 1 comments
trafficstars

Hello friends,

anybody knows how to detect on the hook AfterScenario if it failed or no?

I tried already with: IsFailed if (!scenario.isFailed) { driver.call(setScore, null, 'pass').then(function(result){ console.log('set score to pass'); }); } done();

I had no cluck with that.

Any idea is always welcome.

vhugogarcia avatar Apr 02 '18 17:04 vhugogarcia

I believe it should be scenario.isFailed()

tjl694 avatar Oct 25 '19 15:10 tjl694