Forum Discussion

MW_Didata's avatar
MW_Didata
Regular Contributor
2 years ago
Solved

Can you clickbutton asynchronously

so for my test I have to either click button or press F12 (both do the same). TC then wait for completion but I need it to press another tested app to actually finish. After about a minute the trans...
  • MW_Didata's avatar
    2 years ago

    I tried Keys methode and the code works 

    Sub Press_Keys
      Dim Obj, Result
      Set Obj = Aliases.etc.etc.frmOrders
      Set Result = Runner.CallObjectMethodAsync(Obj, "Keys", "[F12]")
    End Sub

     

    But TC still get stuck in endless loop.

    The action is waiting for a response, but TC has to give the response in another tested app.

     

    EDIT: This worked but it takes a long timke for TC to go to the next step.