Skip to content

Issue with selenium-side-runner and firefox #329

Closed

Description

@cemol

💬 Questions and Help

I have an issue when running selenium-side-runner with browser firefox. I am not sure if this is an issue with the selenium-side-runner, or firefox, or both. But when I run:
selenium-side-runner -c "browserName=firefox" project.side

Firefox starts and the test starts, but it failes very quickly. My test workes fine with browser chrome and with firefox trough the selenium IDE. What could be wrong? I am currently running my test on Windows 10.

This is the error message I got:

(node:22384) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'addExpectationResult' of undefined
(node:22384) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:22384) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:22384) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
FAIL ./project.test.js
  ● Test suite failed to run

    SessionNotCreatedError: Tried to run command without establishing a connection

      at Object.throwDecodedError (../AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/error.js:514:15)
      at parseHttpResponse (../AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/http.js:519:13)
      at doSend.then.response (../AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/http.js:441:30)
      From: Task: WebDriver.quit()
      at Driver.schedule (../AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/webdriver.js:807:17)
      at Driver.quit (../AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/webdriver.js:840:23)
      at WebdriverEnvironment.teardown (../AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/jest-environment-selenium/dist/index.js:37:32)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        13.189s
Ran all test suites.
Jest did not exit one second after the test run has completed.

This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.

Please note that this issue tracker is not a help form and this issue will be closed.

For questions or help please see:

Activity

  1. corevo commented on Aug 7, 2018

    @corevo
    Member

    It stems from this issue, once it's fixed in the JavaScript Selenium bindings yours will be resolved.

  2. cemol commented on Aug 7, 2018

    @cemol
    Author

    Thanks for your help @corevo ! But what do you mean by "JavaScript Selenium bindings"?
    Shall I implement the code driver.actions({bridge:true}) somewhere? I'm not sure how to fix this.

  3. corevo commented on Aug 7, 2018

    @corevo
    Member

    What I meant is that it's not fixable on my end, I need that issue to be resolved, and update the underlying Selenium version of the runner.
    Bottom line it's an issue I'm aware of, that you can't fix on your own.

  4. cemol commented on Aug 7, 2018

    @cemol
    Author

    Ok, thank you so much for your help!

  5. added
    waiting on external fix
    on Jun 13, 2019
  6. corevo commented on Sep 13, 2020

    @corevo
    Member

    Closing since upstream issue is now closed.

  7. locked and limited conversation to collaborators on Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting on external fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions