Revision: 2752
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 12, 2007 19:28 by rengber
Initial Code
[Test]
public void SendTransaction()
{
FormTester ft = LaunchForm();
FillFormDetails(ft);
ButtonTester bt = new ButtonTester("cmdApply", ft.Properties);
ExpectModal("UpdateInfo","CloseUpdateWindow");
bt.Click();
}
private void CloseUpdateWindow()
{
FormTester ft = new FormTester("UpdateInfo");
Assert.IsTrue(ft.Text == "Updated successfully");
ft.Close();
}
Initial URL
Initial Description
The trick to this is that you must find the class name of the form. The caption won't cut it for non-messagebox modals.
Initial Title
NUnit Forms Code to Dismiss a Modal Form (not a messagebox).
Initial Tags
Initial Language
C#