it('should just get the page', function() {
var driver = browser.driver;
driver.get('https://angularjs.org/');
driver.findElement(by.tagName('body')).getText().then(function(text) {
expect(text).not.toBe(null);
});
});
// this test passes outside of docker, but gets the angular could not be found on the page error when run inside docker
it('should get the index page', function() {
console.log("Getting index.html");
browser.get('https://angularjs.org/');
expect(browser.getCurrentUrl()).toBe('https://angularjs.org/');
});
Here is my config:
seleniumAddress: 'http://hub:4444/wd/hub',
//directConnect: true,
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome',
'defaultTimeoutInterval': 360000,
'proxy': {
'proxyType': 'manual',
'httpProxy': 'http://localhost:3128',
'sslProxy': 'http://localhost:3128',
'noProxy': 'www-local.company.com, localhost, 127.0.0.1'
}
},
rootElement: 'html',
restartBrowserBetweenTests: true,
framework: 'jasmine2',
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['specs/login*'],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
isVerbose : true,
includeStackTrace : true
}
Any assistance would be greatly appreciated.