Search code examples
javaselenium-webdriverwebdriver

Selenium Webdriver - verify text box write-protected?


How can we verify whether a field is write-protected (that is, readonly) in Selenium using Java code?

Best regards


Solution

  • You can try to write something via sendkeys() and check that value attribute of textbox has not been changed.