playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature]: Support community driven language ports in codegen

Open YusukeIwaki opened this issue 1 year ago • 0 comments

🚀 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 https://github.com/YusukeIwaki/playwright-ruby-client/issues/300. Although the issue is closed, it is still an important feature for promoting the usage of Playwright in Rails.

YusukeIwaki avatar Nov 30 '24 20:11 YusukeIwaki