garris / garris/BackstopJS

puppeteer : i want to do multiple sort so want to keep holding Control key and click or sort button for 2 elements and then release control key

Open
#971 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

I want to do multiple sort so want to keep holding Control key and click or sort button for 2 elements and then release control key
**Sample code :**

const frames = await page.frames();
const tryItFrame = frames.find(f => f.name() === 'storybook-preview-iframe');
const locator = await tryItFrame.$('Some locator');
await page.keyboard.down(keyValue); // doesnt work
await page.waitFor(1000);
await locator.click(); //works
await page.waitFor(1000);
await page.keyboard.up(keyValue);// doesnt work

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.