Forum Discussion

Manojrsr's avatar
Manojrsr
Contributor
9 years ago

ComboBox Selection object not Exists

Hi,

 

I have recorded my application for  test case "Registering User". In that i have combo box item "State" and "County"

Based on the "State " comboBox item selection, county combo box item will list according to state.

 

while executing recorded test (Keyword Test), Error occuring in state combo box selection. can you please help on this.

 

I have attached screenshot for your reference

 

 

3 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Here's my best guess:

     

    The page that the combo boxes are on is pageProviderAgency. So, you click the state combo box on that page.  However, the next command after that is do to a Wait command on another page called pageWelcometoReferralValet3.  That seems to be incorrect since it appears that the page that is on screen is still pageProviderAgency.

     

    Change the "Wait" command to be on pageProviderAgency instead of the welcome page and see if the problem corrects.  If you note, the error in the log is that it is unable to find the welcome page... it's not the combo box that's failing, it's your page wait call that's failing.

     

     

    • Manojrsr's avatar
      Manojrsr
      Contributor

      Thanks for information, 

       

      Now i changed my keyword operation using wait property and if then operation, since after selecting state there will be time taken to get county in list. so i have used wait property.

       

      But Error showing that County List item not found, Attached screenshot for your reference.

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        Your wait property is simply waiting for the component to exist which will return almost immediately.  That's what the idStr property basically does. What you should do is change that WaitProperty to check the property of something like "wItemCount" or equivalent property and have it wait until that has the total value of all counties.

         

        On another style note, you have the IfThen logic in place but there is nothing that is being executed on the condition.  Note that your next step, clicking on the item, is not indented under the if-then, therefore it will still always be executed even if the if-then fails.