const { test, expect } = require('@playwright/test');
test.only('Login 1', async ({ page }) => {
await page.goto('my login page');
await page.fill('input[name="userId"]', 'my userId');
await page.fill('input[name="password"]', 'my password');
await page.locator('#idPasswordInputForm a.input_area_btn_01').click({timeout: 30000});
})
I use above code to test login on my page automatically. However, after it runs to this line: await page.locator('#idPasswordInputForm a.input_area_btn_01').click({timeout: 30000});
on debug mode, It stuck on this step: waiting for scheduled navigations to finish
.
Login on my page still works fine if I login manually.
Have I mistake something and how to fix it?
.evaluate(el => el.click())
is a typical workaround for visibility.waiting for scheduled navigations to finish
.