Add wait time for next button to be clicked on
This commit is contained in:
parent
e440a3b60c
commit
5ca23e64c7
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue