Forum Discussion

googleid_116641's avatar
googleid_116641
Occasional Contributor
12 years ago

Regions.FindRegion

Hello



I am trying to use Regions.FindRegion to verify whether a particular checkbox is checked or not .

I had stored the checked picture of the checkbox through region checkpoint



I am getting this error , when trying to execute

"Cannot get a picture object from the input parameter"



I am using this script



if(Regions.FindRegion(Aliases.window.panel.Picture(),Regions.Checkbox) !=null)

  Log.Message("Found");

else

  Log.Message("Not Found");





Thanks in advance

2 Replies

  • VLapidus's avatar
    VLapidus
    Frequent Contributor
    Replace the second parameter with the image name:



    if(Regions.FindRegion(Aliases.window.panel.Picture(),"Checkbox") !=null)

      Log.Message("Found");

    else

      Log.Message("Not Found");