Forum Discussion

weototheheo's avatar
weototheheo
Occasional Contributor
12 years ago

Regions checkpoint is sometimes able to execute, sometimes not able to execute

Hi all,



I used Region checkpoint to check image in test script as below:

  Regions["panelWidgetcontent2"]["Check"](Aliases["browser"]["pageGetunapprovedlogs"]["sectionMain"]["panelDriversnapshotcontainer"]["panelWidgetcontent"]);



 This code sometimes able to execute but sometimes error "The Picture object does not contain any images" and test script execution is broken.

If any suggestion, please feel free to  suggest me?



Thanks,

Hien
  • weototheheo's avatar
    weototheheo
    Occasional Contributor
    Hi all,



    Although I recorded region checkpoint again, test script  is stopped automatiic with error  "The Picture object does not contain any images" when running at region checkpoint line of code.



    Please give me any suggestion to resolve this probem.

    Heo

  • Hi Hien,


     


    Add the Picture method to get the image of the panel before the comparison, like this:


    Regions["panelWidgetcontent2"]["Check"](Aliases["browser"]["pageGetunapprovedlogs"]["sectionMain"]["panelDriversnapshotcontainer"]["panelWidgetcontent"]["Picture"]());