webdriverio-boneyard / wdio-cucumber-framework

A WebdriverIO v4 plugin. Adapter for Cucumber testing framework.
MIT License
77 stars 61 forks source link

Can you get tags from configuration file in beforeScenario function #156

Closed mareru closed 5 years ago

mareru commented 5 years ago

Hello,
is there a way to get the tags from configuration file test.conf.js that are set in the attribute:

cucumberOpts: {
    tags: ['@registration', '~@WIP']
}

in function beforeScenario?

christian-bromann commented 5 years ago

Try browser.config.cucumberOpts.tags.

mareru commented 5 years ago

It was browser.options.cucumberOpts.tags. But thanks for the tip :)