Using the Find.ByAttributes<T>() method I am able to find a specific control in the DOM, but once found I cannot cast it to a more specific type, HtmlInputText. The control is an input field, which can be seen in the HtmlControl properties. I then attempt to cast the HtmlControl by simply:
HtmlInputText _email = ctrl as HtmlInputText; (ctrl is the generic HtmlControl)
I could work with the HtmlControl, but there are specific methods and properties that the HtmlInputControl has that the more generic HtmlControl does not.
I was hoping to find any feedback on why the casting could not be done, when the HtmlControl returned was an input control.