From 5ca23e64c7430d73ab274a3fc0aaef6d9dec9ff8 Mon Sep 17 00:00:00 2001 From: JennyNou Date: Mon, 30 Mar 2026 20:51:04 -0400 Subject: [PATCH] Add wait time for next button to be clicked on --- playwright-tests/pages/PaypalPage.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/playwright-tests/pages/PaypalPage.ts b/playwright-tests/pages/PaypalPage.ts index adb6ba5d..d1c30c6c 100644 --- a/playwright-tests/pages/PaypalPage.ts +++ b/playwright-tests/pages/PaypalPage.ts @@ -25,6 +25,7 @@ export class PaypalPage extends BasePage { async completePaypalPurchase(paymentDetails: IPaymentDetails) { await this.usernameTextBox.fill(paymentDetails.username!); + await this.nextButton.waitFor({ state: 'visible', timeout: 10000 }); await this.nextButton.click(); await this.passwordTextBox.fill(paymentDetails.password!); await this.paypalLoginButton.click();