5 ms·
Your sample code looks like a puppeteer script.
by DailyHN 7y ago
Your sample code looks like a puppeteer script.
- zabil 7y agoClose, 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]