How can we check the unavailability of an unavailable control ? RRS feed

  • Question

  • Hi,

    If we want to check the unavailability of a control that is actually not present in a particular page then how can we ensure that it is not present there.

    The controls are available for rest of the pages but not in that particular page.

    Thanks, Abhishek.

    Friday, June 29, 2012 11:30 AM


  • Add the control to the UIMap from one of the pages it is on and then Assert.IsTrue(!control.Exists,"Some message about the control not existing") on the page it doesn't exist on.
    Friday, June 29, 2012 9:46 PM