playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[BUG] Trying to run Playwright script through Selenium 4 grid, but getting socket err

Open maranbalu opened this issue 2 years ago • 2 comments

Context:

  • Playwright Version: [1.23]
  • Operating System: [Windows]
  • Node.js version: [v16.13.2]
  • Browser: [Chrome]
  • Extra: [Selenium Hub in Windows and Node in Linux]

In CLI, first set the env variable as follows: set SELENIUM_REMOTE_URL=http://localhost:4444 (This is my remote driver URL)

[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 6.708 s <<< FAILURE! - in TestSuite [ERROR] setup(com.practice.SeleniumGrid4Demo.tests.TestFour) Time elapsed: 6.595 s <<< FAILURE! com.microsoft.playwright.PlaywrightException: Error { message='WebSocket error: connect ECONNREFUSED

Describe the bug While trying to run my playwright scrip in node machine, I received the above error message. I strictly followed the instructions provided here: [https://playwright.dev/java/docs/selenium-grid] But still got nowhere Add any other details about the problem here.

maranbalu avatar Jul 04 '22 06:07 maranbalu

(cc'ing @dgozman for an advice)

aslushnikov avatar Jul 05 '22 15:07 aslushnikov

@maranbalu We have updated the docs - perhaps you could follow them to resolve your issue?

dgozman avatar Aug 05 '22 17:08 dgozman

Closing as per above. If the problem persists and you have a repro, please file a new issue and link to this one.

dgozman avatar Aug 11 '22 18:08 dgozman