Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore(bidi): pointerMove action needs to floor fractional values for x and y position (#34191)
Henrik Skupin6fddefde81d6
diff --git a/packages/playwright-core/src/server/bidi/bidiInput.ts b/packages/playwright-core/src/server/bidi/bidiInput.tsindex cf6770a479..01a359dd12 100644--- a/packages/playwright-core/src/server/bidi/bidiInput.ts+++ b/packages/playwright-core/src/server/bidi/bidiInput.ts@@ -79,8 +79,8 @@ export class RawMouseImpl implements input.RawMouse {async move(x: number, y: number, button: types.MouseButton | 'none', buttons: Set<types.MouseButton>, modifiers: Set<types.KeyboardModifier>, forClick: boolean): Promise<void> {// Bidi throws when x/y are not integers.- x = Math.round(x);- y = Math.round(y);+ x = Math.floor(x);+ y = Math.floor(y);await this._performActions([{ type: 'pointerMove', x, y }]);}