Forum Discussion

triisguashas's avatar
triisguashas
New Contributor
9 years ago

Playback freezes when popup is opened

Hello!

I am new to Testcomplete.

I created a basic test with Testcomplete, one of the step is clicking OK in the confirmation popup. When playing it back it freezes just before clicking ok. I cannot stop or pause the playback. I can stop it only when I have manually closed the popup.

 

I clicked Show in Object Browser for the 'OK Button'. and got error:
Unable to highlight the "Aliases.browser.pageFundmanager.Confirm.buttonOk" object in the Object Browser panel, because it does not exist.

 

I converted keywordtest to Script:

function Test16()
{

//Drags from point (70, 9) of the 'textboxLadderDate' object to offset (-71, -7).
Aliases.browser.pageFundmanager.frameTdpDisplay.frameLadderUpdate.formF.textboxLadderDate.Drag(70, 9, -71, -7);
//Sets the text '1-12-16' in the 'textboxLadderDate' text editor.
Aliases.browser.pageFundmanager.frameTdpDisplay.frameLadderUpdate.formF.textboxLadderDate.SetText("1-12-16");
//Enters '[Tab]' in the 'textboxLadderDate' object.
Aliases.browser.pageFundmanager.frameTdpDisplay.frameLadderUpdate.formF.textboxLadderDate.Keys("[Tab]");
//Clicks the 'buttonOk' control.
Aliases.browser.pageFundmanager.Confirm.buttonOk.ClickButton();
}

 

It's freezes as well..

When I close the popup - it says: "Waiting for the buttonOk object." and then fails

 

Can somebody please help?

 

 

6 Replies

  • baxatob's avatar
    baxatob
    Community Hero

    Hi,

     

    1. Try to setup a delay before clicking on button OK.

     

    2. Please show, how you've mapped this element - Aliases.browser.pageFundmanager.Confirm

     

     

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      baxatob wrote:

      Hi,

       

      1. Try to setup a delay before clicking on button OK.

       

      2. Please show, how you've mapped this element - Aliases.browser.pageFundmanager.Confirm

       

       


      I'm actually guessing that the Confirm is the built in Confirm object on most web pages.

    • triisguashas's avatar
      triisguashas
      New Contributor

      It was mapped automatically when recorded.

      What do you mean by showing how is it mapped?

      Do you mean this? NameMapping.Sys.browser.pageFundmanager.Confirm.buttonOk

      I added screenshot of object spy for both - the button and the popup

       

      I think the problem could be that it is not in the object browser. Not sure how to get it there