Forum Discussion

joaobc's avatar
joaobc
Occasional Contributor
4 years ago
Solved

Attach printscreen to Log.Checkpoint

The only way I can post a printscreen of the entire screen is this way: Log.Picture(Sys.Desktop.Picture(), "OK Message");   Reading the documentation of Checkpoint method (https://support.smartbea...
  • joaobc's avatar
    joaobc
    4 years ago

    I already try this, but get the error: Unexpected Token ,

     

    I confused, I thought the method would be able to detect the type of the object, because besides the one you commented on, I tried to pass blank strings and get runtime error. I didn't notice the other default values ​​on the right side of the table.

     

    Log.Checkpoint("OK Message","","","",Sys.Desktop.Picture()) -- get JavaScript runtime error.

     

    I solved using null, and only the priority need the parameter: pmNormal or any integer and the picture object or method which return a picture object.


    Log.Checkpoint("OK Message",null,pmNormal,null,Aliases.myApp.Picture())

    Log.Checkpoint(null,null,pmNormal,null,Aliases.myApp.Picture())