fbpx

Radio Buttons and Check boxes

Radio Buttons and Check boxes

Home Forums Ask Expert Radio Buttons and Check boxes

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31514
    Bruce Spring
    Participant

      How does one determine whether a Radio Button or Check Box is Checked or not checked? I’m assuming it is considered an Image Object and not one of the OCR objects.

      Thanks

      #31515
      Sasha ZAP
      Moderator

        Hello bruce.spring,

        Basically you can do it as follow:

        1. Using the ZAPTEST GUI Map scan the page with the Radio-buttonCheckbox in both situations (Create 2 saved Views):
        One when the Radio-buttonCheckbox is checked and the other when it is unchecked.
        2. In both scanned pages set the image based object rectangle inside the Radio-buttonCheckbox (By enlarging the scanned GUI image in the GUI Map).
        3. Using the “GetAverageColorName” method find the color inside the object.
        4. Using a condition statement check if the Radio-buttonCheckbox object has a different color then White:
        If it is different then White the Radio-buttonCheckbox is checked and if it is White then it is unchecked

        Hope this makes sense.

        Happy Thanksgiving Day.

        Thanks,
        ZAPTEST Team

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.

      Virtual Expert

      ZAPTEST

      ZAPTEST Logo