0

I am writing an automation framework and wondering how to create environment properties file like Java.

I know wdio.config.js is the place where we hold baseURL and other stuff. Say I would like to create new placeholders like "Login" which accepts string or "username" which is a string as well. How can I implement that?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
ChanChow
  • 1,346
  • 7
  • 28
  • 57

1 Answers1

1

Just adding Login: "loginuser" or password: "password" in wdio.config.js worked. These are accessible using browser.config.loginuser or browser.config.password

ChanChow
  • 1,346
  • 7
  • 28
  • 57