javascript - Safari WebDriver setTimeout using protractor exiting -


i have done lot of unit tests using karma, office have integration tests, testing cross browser capabilities. this, seemed protractor best option, , have started get basic dashboard tests going, stuck safari.

my config:

exports.config = {     seleniumaddress: 'http://localhost:4444/wd/hub',      specs: ['scenarios/*scenario.js'],      framework: 'jasmine',      baseurl: 'https://www-dev.remeeting.com/',      multicapabilities: [{         browsername: 'firefox'     }, {        browsername: 'chrome'     }, {        browsername: 'safari'     }],      onprepare: function() {         browser.driver.get('https://www-dev.remeeting.com/');          browser.driver.findelement(by.id('email')).sendkeys('adam+test@mod9.com');         browser.driver.findelement(by.id('password')).sendkeys('abc123');         browser.driver.findelement(by.id('submit_btn')).click();          // login takes time, wait until it's done.         // test app's login, know it's done when redirects         // app/#/d.         return browser.driver.wait(function() {             return browser.driver.getcurrenturl().then(function(url) {                 return /app\/#\/d/.test(url);             });         }, 10000);     } }; 

my spec

describe('dashboard', function() {     it('should login dashboard', function() {         expect(element(by.css('.dashboard')).gettext()).tomatch(/upload meeting/);         expect(element(by.id('refreshbutton')));         expect(element(by.css('.dashboard div.btn-group')))     }); }); 

and error

[safari #21] pid: 79079 [safari #21] specs: /users/adam/git/mrp-  www/e2e/scenarios/dashboardscenario.js [safari #21] [safari #21] using selenium server @ http://localhost:4444/wd/hub [safari #21] error - unable start webdriver session. [safari #21] unknown command: settimeout (warning: server did not provide stacktrace information) ... [safari #21] driver info: org.openqa.selenium.safari.safaridriver [safari #21] capabilities [{browsername=safari, takesscreenshot=true, javascriptenabled=true, version=9.1, cssselectorsenabled=true, platform=mac, securessl=true}] [safari #21] session id: null  [launcher] runner process exited unexpectedly error code: 1 [launcher] 2 instance(s) of webdriver still running 

anybody know how configure protractor safari?

here did set safari + protractor:

  • made sure have latest safari (9.1 @ moment)
  • downloaded latest safari driver this page, opened safari extensions preferences , dragged , dropped safaridriver.safariextz file extension list:

enter image description here

  • upgraded protractor latest version (3.2.2 @ moment)

note that, alternative, can run safari remotely on browserstack or saucelabs.


see list of safari+protractor issues.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -