If the statement in the QF test

I am studying a QF test and want to make a simple if statement. If I make changes on this one page, he has enabled the "Apply" button, which I want to click if it is enabled.

When I check if the button is on, this is what appears

Check boolean: enabled (true) [buttonApply=>($client)] 

So, I want to say something like

 if 'buttonApply.enabled'=="true" Mouse Click [buttonApply=>($client)] 

but it does not work

+4
source share
1 answer

Well, I emailed QF test support and received this answer

  • Set the variable in the "Variable for Result" field. Let them say "CompPresence"
  • When you run the script, the variable "CompPresence" will be filled with the value "true" if the "Apply" button is enabled.
  • You can use an If loop, for example If '$ (CompPresence)' == "true"
+2
source

All Articles