class Playwright::Connection
def initialize_playwright
def initialize_playwright # Avoid Error: sdkLanguage: expected one of (javascript|python|java|csharp) # ref: https://github.com/microsoft/playwright/pull/18308 # ref: https://github.com/YusukeIwaki/playwright-ruby-client/issues/228 result = send_message_to_server('', 'initialize', { sdkLanguage: 'python' }) ChannelOwners::Playwright.from(result['playwright']) end