3 ms·
Close, but Taiko has a flat API. For reference here's a script in puppeteer const browser = await puppeteer.launch(); const page = await browser.newPage();
by zabil 7y ago
Close, but Taiko has a flat API. For reference here's a script in puppeteer
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://example.com');
await page.screenshot({path: 'example.png'});
await browser.close();
and the same thing in Taiko
await openBrowser()
await goto('https://example.com');
await screenshot({path: 'example.png'});
await closeBrowser();
- Normal_gaussian 7y agoso I can't work on multiple pages in parallel?
- DailyHN 7y agoIt seems that way.
- zabil 7y agoYou can open tabs, incognito windows and switch back and forth
- Normal_gaussian 7y agoIs the tab switching synchronous? If not then I couldn't do it in parallel without inadvertently hitting the wrong tab. If it is then its no better than using a page handle (as a handle would be required)
- deleted 7y ago[deleted]