Skip to content

Commit

Permalink
Trying to get click to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhogg committed Dec 9, 2024
1 parent 6c82bbc commit 3f9e3b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/llms-e2e-test-utils/src/click.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* @return {void}
*/
export async function click( selector ) {
const target = await page.$( selector );
target.scrollIntoView();
await page.waitForSelector( selector );
await page.$eval( selector, ( el ) => el.click() );
}

0 comments on commit 3f9e3b0

Please sign in to comment.