How to remove a css attribute using the xPath


I have a problem, I want to delete the “readonly” attribute to enter values ​​in the field because it gives me an error. How can I delete the attribute using the xPath address?

Thank you very much.

Hi Daniel,

I don’t think there is direct method in Katalon for this, but Javascript may help you. Try this:

WebUI.executeJavaScript('document.getElementById("elemId").removeAttribute("readonly")', null)
1 Like