chromiumoxide icon indicating copy to clipboard operation
chromiumoxide copied to clipboard

How to use contexts etc?

Open shirshak55 opened this issue 4 years ago • 3 comments

I went to examples and couldn't find any code which creates contexts etc?

I want to translate this code

let browser = await firefox.launch({headless:false})
let context = await browser.newContext();
let page = await context.newPage();
await page.goto("https://jsonip.com");

shirshak55 avatar Oct 03 '21 15:10 shirshak55

this would be the same as browser.new_page("https://jsonip.com")

mattsse avatar Oct 07 '21 00:10 mattsse

@mattsse how to create new context though? Context are abit different though.

shirshak55 avatar Oct 07 '21 05:10 shirshak55