Hi, I currently am using a snippet of code similar to this to log into the site under test:
username.Text = userName;
password.Text = password;
where username is of type HtmlInputText and password is HtmlInputPassword. When I'm running this, the log in works most of the time. However, I've also been frequently getting this error:
System.ArgumentException : Invalid input type 'Text' for this control. Control was expecting 'Password'
at ArtOfTest.WebAii.Controls.Control.CreateInstance(Element e, Boolean throwIfNull)
The HTML of the password looks like this:
<input id="txtPass" name="password" type="text" title="Password">
However changing the password to HtmlInputText also results in an exception:
Invalid input type 'Password' for this control. Control was expecting 'Text'
Does anyone know what could be causing it?