Forum Discussion

NT's avatar
NT
Contributor
9 years ago

Web testing in testcomplete how to playback a hidden button:

1st question:

How can i playback selection of  a button that appear only when i type some  word in the other textbox?

For instance, I have  text box in web page in which i must  entred  "TestC" and automatically  a dynamic  button appear with the name of "TestComplete", I should clic on it and when i do this, the choice appear  Under  the  first text box

This step function well in recording, but the playback doesn't and  display this error: object doesn't exist.

I try several solutions like scripting with Dom collection but does'nt work

Please i will be very thankfull if you give me an answer.

 

2nd Question:

I work with TestComplete since january 2016, this  Tool interest me a lot,  but i have found  difficulty When i  manipulate name mapping.
I watch videos of lino tadros and cregg hanson,  and have read articles on  smart bear support, and also forum and help  but i think that it'snt  enough for me and it does'nt answer all my questions.
Are there  a book,  or full documentation about name mapping  whith more details  , i could purchase it.

 

Thank you  very much

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    To answer your first question, I'd suggest reading the articles concerning waiting for objects, properties, and so on found at this link.  Basically, what you're going to want to do is insert some logic utilizing one of these wait methods into your test.  That way, before you go to try and click on the dynamic button, you first check to see if it exists using one of the Wait methods.  

     

    As for documentation, I know there are some third-party books and such out there. I'm sure someone will pipe up with it. But, honestly, that's what we're here for.  You got questions? We got answers. ;)

    • NT's avatar
      NT
      Contributor

      I would like to add more information on the first question because I still need help.

       

      The problem is that as soon that I enter a text in the textbox, it appear an autocompletion list witch I can select a choice that is display Under the textbox itself. It is that event of the autocompletion list that TestComplete seems to not recognize. As long as I do not make appear that list manually Under the textbox, TestComplete is not capable to reconize the object. It seems to be invisible for TestComplete on a playback. Could you help me to reproduce that event in a keyword test or a script.

       

      Regards,

      Nathalie

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        From your original question, you recorded the steps initially.  Could you paste a screenshot of the keyword test or the script you recorded? Usually, the recording will expose how you need to reference that auto-completion so you can code around it.