Using the CSS locator with the ID, attempt to fill in the password field during registration. The password field has attributes type=password, readonly, and autocomplete=off.
HTML of the password field:
Password*
await page.locator(“//input[@id=’RegistrationForm_password’]”).fill(“Password”)–>getting below error
Error: locator.fill: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator(‘//input[@id=’RegistrationForm_password’]’)
- locator resolved to <input placeholder=”” type=”password” autocomplete=”off…/>
- fill(“Testing1”)
- attempting fill action
- waiting for element to be visible, enabled and editable
- element is not editable
- retrying fill action, attempt #1
- waiting for element to be visible, enabled and editable
- element is not editable
Can anyone please provide me the solution?
It is working in Selenium but not in playwright
Nakshatra is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.