Open GrayedFox opened 1 year ago
Hi @GrayedFox Kindly please raise a support ticket by sending an email to support@browserstack.com or via Contact Us here.
@GrayedFox Hi! Is await page.route(frameUrl, async (route) => {
still working for you? For me, it is ignoring any wss urls.
Details
There is no documented
wsLocalSuport
capability on the PlayWright page: https://www.browserstack.com/docs/automate/playwright/playwright-capabilitiesI am having a similar issue to #106. Our test suite uses the
ws
package to spin up a web socket server which our AUT connects to when under test.Everything works fine locally, and I have followed the advice on that thread, but still get the following error inside BrowserStack logs:
Here is the web socket and server implementation:
Expected Behavior
The AUT, when it submits the payment form, should connect to the local secure web socket server and work the same way it does when running the tests locally.
Actual Behavior
The web socket server errors when a connection attempt is made.
Steps to Reproduce the Problem
Create a test file that acts as an AUT that connects to the secure web socket server - I can't share our application code as it's IP, but that part shouldn't be too hard.
Write a test that triggers the AUT connecting to your ws secure web socket server.
Platform details