microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
65.67k stars 3.57k forks source link

[Bug]:chromium.connect shows as deprecated in version 1.41.1 above #29769

Closed DCamaraLopez closed 6 months ago

DCamaraLopez commented 6 months ago

Version

1.41.1

Steps to reproduce

Description: Using a Cucumber+ Playwright with typescript framework; trying to use the "chromium.connect" method to establish the communication BrowserStack server, it is showing as deprecated but if I downgrade the playwright version up to 1.37.0 or less the method is working. Details: Playwright Version: 1.41.1 Operating System: Windows 10 Node.js version: 20.10.0 Browser: Chromium, Firefox, WebKit Extra: image

Expected behavior

The method must be available to be used

Actual behavior

"chromium.connect" method it is showing as deprecated but if I downgrade the playwright version up to 1.37.0 or less the method is working.

Additional context

No response

Environment

System:
OS: Windows 10
CPU: x-64
Binaries: 
Node: 20.10.0
npm: 10.0.0
npmPackages:
@cucumber/cucumber: 9.5.1
@playwright/test: 1.41.1
pavelfeldman commented 6 months ago

You should use a different variation of this method. Click on connect to see the right version.

DCamaraLopez commented 6 months ago

@pavelfeldman Thanks for your response but with "right version" Do you mean the playwright's version? because I just can see in the description about the client service version:

image

pavelfeldman commented 6 months ago

Documentation and VSCode should suggest you the right signature: https://playwright.dev/docs/api/class-browsertype#browser-type-connect

DCamaraLopez commented 6 months ago

Thank you!, I'll check it.