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
fix(android): include the `from` point in the swipe path (#42349)
Lazizbek Ergashevace1bc13372c
diff --git a/packages/playwright-core/src/client/android.ts b/packages/playwright-core/src/client/android.tsindex bad1546eab..400547e7a1 100644--- a/packages/playwright-core/src/client/android.ts+++ b/packages/playwright-core/src/client/android.ts@@ -335,7 +335,7 @@ export class AndroidInput implements api.AndroidInput {}async swipe(from: types.Point, segments: types.Point[], steps: number) {- await this._device._channel.inputSwipe({ segments, steps }, kNoTimeout);+ await this._device._channel.inputSwipe({ segments: [from, ...segments], steps }, kNoTimeout);}async drag(from: types.Point, to: types.Point, steps: number) {