octaltree / playwright-rust

Playwright port to Rust
298 stars 31 forks source link

Could you help with guidance on how to write the bindings? #54

Open searleser97 opened 2 months ago

searleser97 commented 2 months ago

For example, let's say I just want to create the bindings to achieve the following (but in rust of course):

import { chromium } from 'playwright';

const browser = await chromium.connectOverCDP(config.browserURL);
const context = browser.contexts()[0];
const page = await context.newPage();
await page.goto('https://somesite.com');

Could you help me on the steps, or at least give a general idea of how to do it ?