Forum Discussion

MrDysprosium's avatar
MrDysprosium
Contributor
8 years ago
Solved

Comparing a value against what is in the clipboard?

Using a Property Checkpoint, is there a way to compare a value against what is currently in your Windows Clipboard? For instance, I want to make sure that a value that I copied out of a now closed wi...
  • shankar_r's avatar
    8 years ago

    ,

     

    You can do something like below,

     

    function testChecpoint()

    {

     

    var currentCilpboardTxt = Sys.clipboardtext;

     

    If(yourObject.wText == currentCilpboardTxt)

    {

    Log.Checkpoint("Passed");

    }

    else

    {

    Log.Error("Failed")

    }

    }