Forum Discussion

yuef_shine's avatar
yuef_shine
Occasional Contributor
11 years ago

Fail to check property with special characters

Hi,



I use the method - aqObject.CheckProperty to compare a tip on the screen with the expected text which is <No Value> -> 123.45.

But the checkpoint fails with the following error - The property checkpoint failed (Reason: the OleValue does not contain the substring "&lt;No Value&gt; -&gt; 123.45 ").

It seems that the scripts convert the special characters to Escape Sequence. How to provent this and let the scripts compare the real character entities?



Thanks,

Vivian

1 Reply

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    Seems to work for me...entered your text into notepad and ran the following code:






    var myObj = Sys.Process("notepad").Window("Notepad", "Untitled - Notepad", 1).Window("Edit", "", 1);


    aqObject.CheckProperty(myObj,"wText",0,"<No Value> -> 123.45");