Forum Discussion

TrevorM's avatar
TrevorM
Occasional Contributor
3 years ago

Clipboard checkpoint anomaly

I am having a problem using the Clipboard checkpoint. I have tried both the Equals to and Contains options. The text Cashbook (14 items) has been copied to the clipboard. When I try to create a chec...
  • chriscc's avatar
    3 years ago

    Hi TrevorM ,

     

    I think TestComplete is parsing the backslash/escape character prior to passing it to the function, so the parenthesis are being treated as a special character rather then a literal.  Using a double backslash should work...something like this:

     

    if (aqString.StrMatches("Cashbook \\(14 items\\)", NameMapping.Sys.Clipboard) == true)

     

    I hope this helps.