Hi All,
How to verify that one field is editable or not??
My approach: I am retrieving the text putting in a String after that i am sending keys to that field to edit the text. And after sending keys i am retrieving the text for that element and comparing the text it should not be changed. It is working fine in FF and but not working in IE.
Approach #2: I can do it by taking the readonly attribute but there is no "readonly" attribute for that element in HTML.
WebElement some_element = driver.findElement(By.id("id"));
String readonly = some_element.getAttribute("readonly");
Assert.assertNotNull(readonly);
Is there any other way to handle this?
Thanks,
Sudhansu