Recently, I encountered an issue while trying to run a Protractor test on Safari, even when following the official example provided at http://www.protractortest.org/. Below are my conf.js and todo-spec.js files.
The problem arises when I set browser.ignoreSynchronization=true; (What is browser.ignoreSynchronization in Protractor?). This setting allows the test to run, but it prevents me from taking full advantage of Protractor's capabilities.
The website https://angularjs.org/ uses Angular 1.6.4.
Here is the log from running the test:
$ node ./node_modules/protractor/built/cli.js conf.js --browser safari (node:5778) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. [09:49:28] I/hosted - Using the selenium server at http://MAC_IP:4444/wd/hub [09:49:28] I/launcher - Running 1 instances of WebDriver Started ... (log continues)
When starting the webdriver manager:
$ ./node_modules/protractor/bin/webdriver-manager start ... (log continues)
Contents of conf.js:
exports.config = { framework: 'jasmine2', seleniumAddress: 'http://MAC_IP:4444/wd/hub', specs: ['todo-spec.js'] };
Contents of todo-spec.js:
describe('angularjs homepage todo list', function() { ... (content continues)