Check if is selected

Check if is selected

Home Forums Ask Expert Check if is selected

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #32895
    Sasha ZAP
    Moderator

      Hello Marco,

      Basically to check if a certain checkbox or radio-button was checked you can set its object “Recognition Type” property as “OCR (Partial)”, and set its “Text Color” accordingly:
      Then you can use the object’s “GetAverageColorName” method to capture its color name (Or instead use the “CompareAverageColorRGB” to get the color’s number), and if the color is different from its original setting it means the object’s status is different (See attached “isitemselected_ZAP Team.zap” script, lines #:11-12).

      Hope this helps.

      Thanks,
      ZAPTEST Team

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.

    Virtual Expert

    ZAPTEST

    ZAPTEST Logo