I am new to Protractor (can only say 1 day) and tried to run the end to end test.
However, every time I run conf.js it displays me with "Timed out, waiting for the Protractor to sync with the page in 11 seconds."
Before posting this question, try all the options provided by other respondents, but are still unable to solve the problem and thus request your help.
For support, the following is information about my js js configurations and files:
Conf.js:
exports.config = { directConnect: true, capabilities: {'browserName': 'chrome'}, framework: 'jasmine', specs: ['example_spec.js'], jasmineNodeOpts: { defaultTimeoutInterval: 100000 } };
example_spec.js:
describe('forfirm homepage', function() { it('login window should open', function() { browser.get('https://www.forfirm.com'); element(by.model('forfirm.email')).sendKeys(' email@email.com '); element(by.model('form.password')).sendKeys('Password'); }); });
The resulting conclusion:
Failures: 1) forfirm homepage login window should open Message: Failed: Timed out waiting for Protractor to synchronize with the page after 11 seconds. Please see https://github.com/angular/protractor/blob/master/docs/faq.md. The following tasks were pending: - $timeout: function (){a.next(),h=f(j,5e3)} Stack: Error: Failed: Timed out waiting for Protractor to synchronize with the page after 11 seconds. Please see https://github.com/angular/protractor/blob/master/docs/faq.md. The following tasks were pending: - $timeout: function (){a.next(),h=f(j,5e3)} at /Users/rohitgathibandhe/npm-global/lib/node_modules/protractor/node_modules/jasminewd2/index.js:101:16 at Promise.invokeCallback_ (/Users/rohitgathibandhe/npm-global/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1329:14) at TaskQueue.execute_ (/Users/rohitgathibandhe/npm-global/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2790:14) at TaskQueue.executeNext_ (/Users/rohitgathibandhe/npm-global/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2773:21) 1 spec, 1 failure Finished in 22.022 seconds [launcher] 0 instance(s) of WebDriver still running [launcher] chrome
Also, when running protractor conf.js, I could not see how the Chrome browser launch browser starts.