WebdriverIO: How to read baseURL value from wdio.conf.js. inside step definition file
问题 I am using WebdriverIO for test automation. In wdio.conf.js file I have configured the 'baseUrl' property. I want to read the 'baseUrl' property value inside my test .js file. How can I do this? 回答1: ❒ wdio-v5 Lately, after writing a lot of tests for a project rewrite I've came to believe the best way to store/access global config variables is via the global object. You can define them inside the wdio.conf.js file's hooks. I defined mine in the before hook: before: function (capabilities,