Protractor: baseUrl with a path?

Created on 16 Sep 2015  路  1Comment  路  Source: angular/protractor

I'm trying to set the baseUrl to https://myfantasyurl.com/with/a/path/ like

exports.config = {
  specs: ['spec.js'],
  baseUrl: 'https://myfantasyurl.com/with/a/path/'
};

but when running protractor with selenium, the browser will always open https://myfantasyurl.com/. Is this not supported by protractor? Maybe something wrong configured?

Most helpful comment

The issue was that in the tests I used to call

browser.get('/');

I changed this to

browser.get('./');

which fixes the error.

>All comments

The issue was that in the tests I used to call

browser.get('/');

I changed this to

browser.get('./');

which fixes the error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rafalf picture rafalf  路  3Comments

tmeneau picture tmeneau  路  3Comments

smarts picture smarts  路  3Comments

nt3rp picture nt3rp  路  3Comments

gamecheck80 picture gamecheck80  路  3Comments