Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Watin 获取网站上可用按钮的列表?watinTestRecorder 是如何做到的?
IE ie = new IE("www.example.com/pagewithbuttons.html");
ButtonCollection buttons = ie.Buttons;
如果要过滤掉可见按钮,请使用:
ButtonCollection buttons = ie.Buttons.Filter(!Find.ByStyle("visible", "none"));
HTH,杰伦·范梅宁