I delve into the world of Protractor tests for AngularJS.
In all tutorials, it is recommended that you complete the following steps after webdriver-manager update and before the test webdriver-manager start : webdriver-manager start
According to the webdriver-manager person, the start command will start the selenium server. However, when I run the above command, I can see something at http://127.0.0.1-00-00444/wd/hub
My questions are: is this necessary?
I am currently running my tests without the above command.
All I do is: webdriver-manager update php -S localhost:8000 -t dist/ protractor ./test/protractor.config.js
My tests run as expected, although I excluded webdriver-manager start .
Can someone explain why webdriver-manager start necessary?
: EDIT:
My protractor /fooTests.js :
exports.config = { directConnect: true, capabilities: { 'browserName': 'chrome' }, specs: ['protractor/fooTests.js'], jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000 } };
My protractor /fooTests.js :
describe('test for the bar code', function() { it('should login', function() { browser.get('http://localhost:8000'); element(by.model('password')).sendKeys('123456'); element(by.css('[type="submit"]')).click(); }); it('should inspect element ', function() { expect(element(by.id('foo-script')).isPresent()).toBe(true); console.log('Login Success'); }); });