Selenium webdriver configuration
Ok, here’s a noob problem that no one has really explained clearly online. Those of you who are configuring your Selenium webdriver to test Angular apps using Protractor the first time will run into this issue.
You have a config.js file which contains your configuration. It looks like this according to Protractor Setup.
// conf.js exports.config = { framework: 'jasmine', seleniumAddress: 'http://localhost:4444/wd/hub', specs: ['spec.js'] baseUrl: 'http://example.com', }
Here, the baseUrl sets the base URL to use in your tests so that you may just write something like this in your tests.
`browser.driver.get(browser.baseUrl + '/')
or
`browser.driver.get(browser.baseUrl + ’/user’)
The browser will now visit http://example.com in the first get() and http://example.com/userin the second get()









