so i have a massive amount of tabs that i need when a certain event happen i want to switch to the next tab , therefore i can use the bringToFront(); method . i used this but didnt worked
await page.keyboard.down('ControlLeft');
await page.keyboard.press('Tab');
but nothing happened i tried
await page.keyboard.down('ControlLeft');
await page.keyboard.press('KeyA');
and it selected all the contents look like am using a wrong key word for tab button
EDIT:
To be more clear am launching the multiple tabs using cluster so i cant use the bringtofront method since there is no page1 and page2 there is only 1 page and the same script is launched multiple times and attached to a previously opened Chrome browser
from how to do Ctrl tab (switching tabs ) for puppeteer
No comments:
Post a Comment