Is there a way to pass command line params for browser instance in webdriverIO #54
-
So for my existing Protractor e2e test suites, i pass some params object variable through command line when running the tests, for different set of users, like - SUPER01_USER_EMAIL = browser.params.super01.email, which i can then pass through cli - protractor e2e/protractor.conf.js --baseUrl https://localhost:4200 --params.super01.email=**** Is there any easy way to replicate this in WebdriverIO? thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You can use environment variables or read CLI parameters in the wdio config add it to the config and read it through the browser object, e.g. |
Beta Was this translation helpful? Give feedback.
You can use environment variables or read CLI parameters in the wdio config add it to the config and read it through the browser object, e.g.
browser.config.myCustomConfig
.