diff --git a/.github/workflows/issue-analyzer.yml b/.github/workflows/issue-analyzer.yml index 171c0408..63aa23c5 100644 --- a/.github/workflows/issue-analyzer.yml +++ b/.github/workflows/issue-analyzer.yml @@ -100,6 +100,8 @@ jobs: - name: Verify issue timeout-minutes: 10 run: ${{ env.PACKAGE_MANAGER }} run verify + env: + DEBUG: 'puppeteer:*' - uses: actions/upload-artifact@v3 if: success() || failure() with: diff --git a/packages/puppeteer-core/src/common/ElementHandle.ts b/packages/puppeteer-core/src/common/ElementHandle.ts index e8f0f04e..ff0d99d9 100644 --- a/packages/puppeteer-core/src/common/ElementHandle.ts +++ b/packages/puppeteer-core/src/common/ElementHandle.ts @@ -502,6 +502,10 @@ export class CDPElementHandle< target: CDPElementHandle, options?: {delay: number} ): Promise { + assert( + this.#page.isDragInterceptionEnabled(), + 'Drag Interception is not enabled!' + ); await this.#scrollIntoViewIfNeeded(); const startPoint = await this.clickablePoint(); const targetPoint = await target.clickablePoint();