c# - Automated tests using MessageBox with MessageBoxButtons.YesNoCancel -
i'm using teststack.white framework winforms .net 2.0 c# application's coded automated regression tests. have no problem handling ok/cancel message boxes (messagebox.show(...)
) i'm having trouble handling yes/no buttons when using messageboxbuttons.yesnocancel
. thing is, not know button names are.
these work in test jigs:
public buttontestjig okbutton { { return new buttontestjig(window, "okbutton"); } } public buttontestjig cancelbutton { { return new buttontestjig(window, "cancelbutton"); } }
does know equivalent "cancelbutton" no button , equivalent "okbutton" yes button? or perhaps better, how find them. googling failed me.
thanks
you can use http://uiautomationverify.codeplex.com/releases/view/11366 or inspect.exe (which comes in windows sdk see automation id's controls are.
Comments
Post a Comment