We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78606b3 commit 1e15711Copy full SHA for 1e15711
packages/web-integration/src/puppeteer/base-page.ts
@@ -264,10 +264,14 @@ export class Page<
264
});
265
} else {
266
if (this.interfaceType === 'puppeteer') {
267
- (this.underlyingPage as PuppeteerPage).mouse.click(x, y, {
268
- button,
269
- count,
270
- });
+ if (button === 'left' && count === 1) {
+ await (this.underlyingPage as PuppeteerPage).mouse.click(x, y);
+ } else {
+ await (this.underlyingPage as PuppeteerPage).mouse.click(x, y, {
271
+ button,
272
+ count,
273
+ });
274
+ }
275
} else if (this.interfaceType === 'playwright') {
276
(this.underlyingPage as PlaywrightPage).mouse.click(x, y, {
277
button,
0 commit comments