Skip to content

Commit

Permalink
changed the paypal button locator
Browse files Browse the repository at this point in the history
  • Loading branch information
Mukhamediyar Kudaikulov committed Jul 19, 2024
1 parent c2a379d commit f43dbf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/e2e/pages/purchasePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export class PurchasePage {
this.returnToDashboardButton = page.getByLabel("Return to dashboard");
this.goToNextStep = page.getByLabel("Go to next step");
this.planDetails = page.locator(".plan-details-description");
this.paypalButton = page.getByTitle("PayPal").nth(1);
this.paypalButton = this.page
.frameLocator('//iframe[@title="PayPal"]')
.first()
.locator('div[role="link"]');
}

async fillOutStripeCardInfo() {
Expand Down

0 comments on commit f43dbf2

Please sign in to comment.