Created
May 5, 2019 13:28
-
-
Save ultimate-qa2/2f5f0dedd5d1bcf75d25bcb9927637d6 to your computer and use it in GitHub Desktop.
WebDriverIO: Get started quickly [2019]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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