Skip to content

Instantly share code, notes, and snippets.

@ultimate-qa2
Created May 5, 2019 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ultimate-qa2/2f5f0dedd5d1bcf75d25bcb9927637d6 to your computer and use it in GitHub Desktop.
Save ultimate-qa2/2f5f0dedd5d1bcf75d25bcb9927637d6 to your computer and use it in GitHub Desktop.
WebDriverIO: Get started quickly [2019]
//Dynamic URLs
//If we wanted to update out urls on the fly through command line
//now we can pass in SERVER=prod in our command line and it will pick the appropriate URL
var baseAppUrl = "https://webdriver.io"
if(process.env.SERVER === "prod")
{
baseAppUrl = "https://ultimateqa.com/automation"
}
//Set the baseUrl property in the wdio.conf.js so that it reads from //your baseAppUrl variable
exports.config = {
baseUrl: baseAppUrl
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment