Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Support community driven language ports in codegen #33830

Open
YusukeIwaki opened this issue Nov 30, 2024 · 0 comments
Open

[Feature]: Support community driven language ports in codegen #33830

YusukeIwaki opened this issue Nov 30, 2024 · 0 comments

Comments

@YusukeIwaki
Copy link
Contributor

🚀 Feature Request

I'm a maintainer of playwright-ruby-client.

Playwright codegen is a very useful feature especially for beginners. While Playwright is available also with Ruby or Go via community driven projects, codegen only supports official languages at this moment.

It seems that current codegen implementation does not accept unknown languages
https://github.com/microsoft/playwright/blob/v1.49.0/packages/playwright-core/src/server/recorder/contextRecorder.ts#L114-L131

So, we have to add Ruby or Go version of codegen into the playwright-core package for supporting community driven project's languages. ( npx playwright codegen --target ruby )

Another idea is preparing something like playwright codegen plugin or extension, and providing another lib just for codegen based on the plugin. ( npx playwright-ruby codegen )

Could you provide any solutiion for this?
Thank you! :)

Example

No response

Motivation

It is actually asked in YusukeIwaki/playwright-ruby-client#300. Although the issue is closed, it is still an important feature for promoting the usage of Playwright in Rails.

@Skn0tt Skn0tt changed the title [Feature]: Codegen support (or extensibility) for community driven project's languages [Feature]: Support community driven language ports in codegen Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants