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();