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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -