Forum Discussion

teng_s2000's avatar
teng_s2000
New Contributor
13 years ago

What is the meaning of ^a in the TestComplete scripts ?

Could anyone help explain the meaning of "^a" in the sample file under "%Test Complete 8 Samples%\Open Applications\WPF3D\TCProject\Orders_WPF_C#Script\Script\Orders_CS.scs"?

oEditOrderGrid["WPFObject"]("TextBox", "", 1)["Keys"]("^a05/30/2007");

oOrderGrid["WPFObject"]("Border", "", 2)["WPFObject"]("Grid", "", 1)["WPFObject"]("TextBox", "", 7)["Keys"]("^a123123123123");


Is it a Regular expression ? if it is the Regular expression, i search it in the online help, the meaning of "^a" is

^ Matches the beginning of a line. For instance, the ^a search pattern lets you find all lines that start with a.


Because the ^ is one special character, so i could not search anything via Google.


I am very doubt, please someone help explain to me ,thanks.

2 Replies

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Steve,


    The "^a" string means the CTRL+A standard Windows shortcut for selecting all the contents of the needed text control.


    So, when the script calls the ["Keys"]("^a05/30/2007") method, TestComplete selects all the contents of the oEditOrderGrid["WPFObject"]("TextBox", "", 1) control and then enters 05/30/2007 to this control.


    For more information, please refer to the Keys Method help topic.