selenium - Protractor tests fail to start on Safari Sierra and throwing driver.version: unknown, SessionNotCreatedError error -
protractor version: 5.1.2 safari version: 10.1.2
i have enabled 'allow remote automation' safari -> develop , started safari driver cmd using following command: /usr/bin/safaridriver -p 8844
now, trying run protractor tests using protractor conf.js. tests fail start following logs:
build info: version: '3.5.1', revision: '9c21bb67ef', time: '2017-08-16t21:10:06.092z' system info: host: 'dyn-49-127-9-116.its.monash.edu.au', ip: 'fe80:0:0:0:479:1a15:751b:51d6%en0', os.name: 'mac os x', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_144' driver info: driver.version: unknown [15:28:40] e/launcher - sessionnotcreatederror: not create session: must enable 'allow remote automation' option in safari's develop menu control safari via webdriver. (warning: server did not provide stacktrace information) command duration or timeout: 32 milliseconds build info: version: '3.5.1', revision: '9c21bb67ef', time: '2017-08-16t21:10:06.092z' system info: host: 'dyn-49-127-9-116.its.monash.edu.au', ip: 'fe80:0:0:0:479:1a15:751b:51d6%en0', os.name: 'mac os x', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_144' driver info: driver.version: unknown @ webdrivererror (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:27:5) @ sessionnotcreatederror (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:214:5) @ object.checklegacyresponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:505:15) @ parsehttpresponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/http.js:509:13) @ dosend.then.response (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/http.js:440:13) @ process._tickcallback (internal/process/next_tick.js:109:7) from: task: webdriver.createsession() @ function.createsession (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:777:24) @ createdriver (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/index.js:167:33) @ builder.build (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/index.js:632:14) @ hosted.getnewdriver (/usr/local/lib/node_modules/protractor/lib/driverproviders/driverprovider.ts:60:29) @ runner.createbrowser (/usr/local/lib/node_modules/protractor/lib/runner.ts:225:39) @ q.then.then (/usr/local/lib/node_modules/protractor/lib/runner.ts:391:27) @ _fulfilled (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:834:54) @ self.promisedispatch.done (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:863:30) @ promise.promise.promisedispatch (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:796:13) @ /usr/local/lib/node_modules/protractor/node_modules/q/q.js:556:49 [15:28:40] e/launcher - process exited error code 19
kinda tricky, because it's not quite working due webdriver/selenium incompatibilities. hoping that, new webdriver release, work. see here.
Comments
Post a Comment