The playwright can type in special characters using the type method like a user with a real keyboard.
await page.goto("https://www.programsbuzz.com/");
await page.locator('.fas.fa-search').click();
await page.locator('#edit-keys').type('Cypress!@#$%^&*()~}{|[]\_;,./?><');
- Log in to post comments