How to cope with 'readonly' and 'selected' attributes in WatiN 2.0 against IE9
问题 I'm using WatiN for web testing, and am encountering issues caused by the fact that for the 'readonly' attribute of INPUT elements, WatiN is attempting to parse the value as a boolean , which as far as I can tell is incorrect, as the attribute should be written as follows: <input readonly="readonly" /> When I try to access the TextField.Readonly property from WatiN at runtime, an error is thrown because WatiN attempts to parse 'readonly' as a boolean. I also encountered a similar issue with