john-doherty / selenium-cucumber-js

Browser automation framework written in pure JavaScript using official selenium-webdriver and cucumber-js
ISC License
120 stars 89 forks source link

the first execution of BeforeFeature doesn't have global elements available #23

Closed danyg closed 7 years ago

danyg commented 7 years ago

Hi another possible bug on world.js:76 as per Cucumber documentation

World is an isolated context for each scenario

Therefore no "world" would have been created at the moment of execute the first BeforeFeature hook. My recommendation would be to create the common global objects at the begging (A pull request will be sent)