Menu

#115 Getting a System.NotSupportedException

open
nobody
None
5
2007-12-06
2007-12-06
Anonymous
No

Basically, I create a LinkbuttonTester and then I click it, and then I get the System.NotSupportedException.

Is this because:

A) My web page is created improperly?

B) My NUnitAsp code is incorrect?

or

C) Not A or B.

My code looks like this:

[Test]
public void theTest(){

LinkButtonTester myLinkButton =
new LinkButton("correctID");

WebAssert.Visible(myLinkButton);
myLinkButton.Click(); <- fails on this line

// rest of code

}

Can someone please help?

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Btw. The full exception message reads this:

    System.NotSupportedException : The URI prefix is not recognized.

     
  • Nobody/Anonymous

    Logged In: NO

    Well... I did some research and NUnitAsp does not support PostBackWithOptions :(

     

Log in to post a comment.