System.InvaildOperation when accessing control properties
Brought to you by:
jlittle82
When attempting to access control properties (eg Text
and MaxLength) of the TextBoxTester I get a
System.InvaidOperation exception with the
message "The specific node cannot be inserted as the
valid child of this node, because the specified node
is the wrong type".
Any suggestions?? The code being used is included
below.
[Test]
public void TestTitleTextBox()
{
Browser.Credentials =
CredentialCache.DefaultCredentials;
Browser.GetPage
("http://localhost/Oasis/Specification/Administration/
FAA010.aspx");
TextBoxTester title = new TextBoxTester
("txtNameNew", CurrentWebForm);
Console.WriteLine(title.Text);
}
Thanks
Paul
pcoe@acpmagazines.com.au