jonsamwell / dart_gherkin

A Gherkin parsers and runner for Dart which is very similar to Cucumber, it provides the base BDD functionality ready for use in platform specific implementations i.e. flutter/web
MIT License
44 stars 44 forks source link

Add World to "onAfterScenario" Hook #72

Open sashokbg opened 6 months ago

sashokbg commented 6 months ago

I am running puppeteer automation with gherkin and I am unable to properly open the browser at the beginning of my scenario and then close it at the end.

The problem is that the onAfterScenario hook does not have access to the world object where I store my Browser object. Is it possible to add it ?

youssef-t commented 4 months ago

Hello,

This is a late response but isn't the method onAfterScenarioWorldCreated suitable for this purpose ?