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.
我想检查按钮是否被点击或不使用 FluentAutomation。关于按钮有两种类型。一个是锁定的,不能更改。就像图片一样,但它的 HTML 仍然是输入的。另一个可以单击,但我不想更改它。我只想知道它是否点击了。有没有办法检查按钮是否被点击?
我使用以下代码进行检查:
string x = I.Find("#checkboxID").Element.Attributes.Get("checked"); bool clicked = (x != null);