Internet Explorer on protractor
Update web manager for IE
First step is to update the ie webdriver using webdriver manager.Open command prompt and run the command given below
> webdriver-manager update --ie
Go to npm location
In this step move to the NPM_LOCATION(folder where npm is installed at your system.
Move to the following path "NPM_LOCATION\node_modules\protractor\selenium"
At this location check that IEDriverServer.exe is present or not.
Change for IE in conf.js
Now run protractor conf.js
Note: Make sure you restart server by -->webdriver-manager start
First step is to update the ie webdriver using webdriver manager.Open command prompt and run the command given below
> webdriver-manager update --ie
Go to npm location
In this step move to the NPM_LOCATION(folder where npm is installed at your system.
Move to the following path "NPM_LOCATION\node_modules\protractor\selenium"
At this location check that IEDriverServer.exe is present or not.
Change for IE in conf.js
// conf.js
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['specs.js'],
capabilities: {
'browserName': 'internet explorer' // conf for internet explorer }
}
// spec.js
describe('Protractor Demo App', function() {
it('should have a title', function() {
browser.get('http://juliemr.github.io/protractor-demo/');
expect(browser.getTitle()).toEqual('Super Calculator');
});
});
Now run protractor conf.js
Note: Make sure you restart server by -->webdriver-manager start
Ok, thanks for that, but how do I get Chrome and FF to also start up? If I set directConnect: true, then that will an error on IE as it doesnt support directConnect.
ReplyDeleteAny ideas?