Menu

#105 System.InvaildOperation when accessing control properties

open
nobody
None
5
2006-08-22
2006-08-22
Anonymous
No

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

Discussion


Log in to post a comment.