Protractor / WebDriverJs giving errors when passing seleniumSessionId for Firefox instance

21 views
Skip to first unread message

tfaron

unread,
Jan 17, 2019, 3:54:31 PM1/17/19
to Selenium Users

I am trying to run my testing using Firefox, we currently run with Chrome and have no issues:


I have a webDriverJS session started with an instance of Chrome and Firefox browsers running

I started the sessions using: http://localhost:4444/wd/hub/static/resource/hub.html


i'm running the latest webDriverJS / GeckoDriver


Running from Chrome is fine when using seleniumSessionId


Here is a snippet from my conf.js file


exports.config = {

  framework: 'jasmine',


  seleniumAddress: 'http://127.0.0.1:4444/wd/hub',

  seleniumSessionId: '4848dca3-5f7e-4a6b-bd45-3a6975971ca8',


  // capabilities : {browserName : 'chrome'},

  capabilities: {

    browserName: 'firefox',

    marionette: true

  },


when I kick off my tests the following error is occurring


[14:51:04] I/launcher - Running 1 instances of WebDriver

[14:51:04] I/attachSession - Using the selenium server at http://127.0.0.1:4444/wd/hub

[14:51:04] I/attachSession - Using session id - 4848dca3-5f7e-4a6b-bd45-3a6975971ca8

[14:51:04] E/launcher - GET /session/4848dca3-5f7e-4a6b-bd45-3a6975971ca8 did not match a known command

Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'

System info: host: 'DESKTOP-KP0NDTR', ip: '16.100.206.160', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'

Driver info: driver.version: unknown

[14:51:04] E/launcher - UnsupportedOperationError: GET /session/4848dca3-5f7e-4a6b-bd45-3a6975971ca8 did not match a known command

Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'

System info: host: 'DESKTOP-KP0NDTR', ip: '16.100.206.160', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'

Driver info: driver.version: unknown

    at Object.checkLegacyResponse (C:\svt-web-client\projects\client-ng\node_modules\selenium-webdriver\lib\error.js:546:15)

    at parseHttpResponse (C:\svt-web-client\projects\client-ng\node_modules\selenium-webdriver\lib\http.js:509:13)

    at doSend.then.response (C:\svt-web-client\projects\client-ng\node_modules\selenium-webdriver\lib\http.js:441:30)

    at process._tickCallback (internal/process/next_tick.js:68:7)

From: Task: WebDriver.attachToSession()

    at Function.attachToSession (C:\svt-web-client\projects\client-ng\node_modules\selenium-webdriver\lib\webdriver.js:695:24)

    at AttachSession.getNewDriver (C:\svt-web-client\projects\client-ng\node_modules\protractor\built\driverProviders\attachSession.js:37:58)

    at Runner.createBrowser (C:\svt-web-client\projects\client-ng\node_modules\protractor\built\runner.js:195:43)

    at q.then.then (C:\svt-web-client\projects\client-ng\node_modules\protractor\built\runner.js:339:29)

    at _fulfilled (C:\svt-web-client\projects\client-ng\node_modules\protractor\node_modules\q\q.js:834:54)

    at C:\svt-web-client\projects\client-ng\node_modules\protractor\node_modules\q\q.js:863:30

    at Promise.promise.promiseDispatch (C:\svt-web-client\projects\client-ng\node_modules\protractor\node_modules\q\q.js:796:13)

    at C:\svt-web-client\projects\client-ng\node_modules\protractor\node_modules\q\q.js:556:49

    at runSingle (C:\svt-web-client\projects\client-ng\node_modules\protractor\node_modules\q\q.js:137:13)

    at flush (C:\svt-web-client\projects\client-ng\node_modules\protractor\node_modules\q\q.js:125:13)

[14:51:04] E/launcher - Process exited with error code 199



I have been able to use CURL successfully to verify

http://16.100.206.160:4444/wd/hub/session/Sessions

However

http://16.100.206.160:4444/wd/hub/session/Session/<sessionId> 

will fail for Firefox but not chrome


I am able to run /<sessionId>/url for FIrefox and get back the URL



Reply all
Reply to author
Forward
0 new messages