Forum Discussion

dankh's avatar
dankh
New Contributor
11 years ago
Solved

Difference between using Sys.Keys or TestObj.Keys

Hi,   I've inherited a test project that uses both Sys.Keys and TestObj.Keys methods to simulate keystrokes. For example:   Some units contain Call Sys.Keys("[F10]")    While others contain Cal...
  • leandroaraujoso's avatar
    11 years ago

    Hello dankh,

     

    Sys.Keys(), sends the keystrokes to whatever is in the context.

     

    TestObj.Keys(), sends the keystrokes to the TestObj, the benefit of this one is that you don't have to navigate to the TestObj to send the Keystrokes.

     

    I hope this make it clear. 

     

    Regards,

     

    Leandro de Araújo Souza