Scroll to paypal frame in playwright

Looks like it may not happen automatically
This commit is contained in:
Alex P 2023-03-22 11:26:52 +02:00
parent 66d32229b7
commit 715e3d4a92
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -24,6 +24,8 @@ test('PayPal button place order from Product page', async ({page}) => {
await page.goto(PRODUCT_URL);
await page.locator('.component-frame').scrollIntoViewIfNeeded();
const [popup] = await Promise.all([
page.waitForEvent('popup'),
page.frameLocator('.component-frame').locator('[data-funding-source="paypal"]').click(),