简体   繁体   中英

Is there a way to check is the button clicked with FluentAutomation?

I want to check the button is clicked or not use FluentAutomation. And there has two types about button. One is locked, it can't be change. Just like picture but it's HTML still is input. Another can click but I don't want to change it. I just want to know is it clicked or not. Is there a way to check is the button clicked?

I use the following code to check:

string x = I.Find("#checkboxID").Element.Attributes.Get("checked");
bool clicked = (x != null);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM