How to get a list of buttons using watin?

How can I use Watin to list the available buttons on a website? How does watinTestRecorder do it?

0


source to share


1 answer


IE ie = new IE ("www.example.com/pagewithbuttons.html");

ButtonCollection buttons = ie.Buttons;

      

If you want to filter the visible buttons, use:



ButtonCollection buttons = ie.Buttons.Filter(!Find.ByStyle("visible", "none"));

      

NTN, Jeroen van Menen

+1


source







All Articles