Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Is there a way to get all Tags of the currently running scenario in Before step? #251

Open
skurlow opened this issue Nov 1, 2020 · 0 comments

Comments

@skurlow
Copy link

skurlow commented Nov 1, 2020

I have a method annotated with @before and what I do in that method is manipulate the web driver. Some of our feature scenarios interact with a browser and some do not and only via REST APIs. I do not want the browser to open for scenarios that do not require it so I thought if I could get access to the tags of a scenario and I define a reusable scenario called NO_BROWSER then for those scenarios I will not open a browser.

I looked at #199 but the base listener is not set during a Before method.

Any ideas?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant