Forum Discussion

V_1's avatar
V_1
Occasional Contributor
6 years ago
Solved

Click.Item always select the 2nd item from the list

Hi

 

I am very new to TestComplete and have absolutely no coding knowledge whatsoever so am using keyword tests. I just want to be able to specify with click.item to either:

a) always choose option 2 of the drop-down or;

b) select a specific string element from a list of options which I can determine

 

I have searched through the community posts and looked at several guides but it is not making sense to me! Any help would be appreciated

  • You could query the database for the address that you want, and then store that in a variable that you pass as a parameter to the ClickItem message. 

3 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Did you try recording a test that does either one of these actions?  That's the place to start.  Then you can show us your example and explain how you would like to change it.  We all have different software to test and it's very hard to help you without more specifics.

    • V_1's avatar
      V_1
      Occasional Contributor

      Hi Marsha_R

       

      I've attached part of the test recorded. I have 2 test DB's in which the drop-down data is different in many scenarios. In the example attached I would like a particular address to be selected depending on which database I am running the test against. 

       

      Thanks

      • cunderw's avatar
        cunderw
        Community Hero

        You could query the database for the address that you want, and then store that in a variable that you pass as a parameter to the ClickItem message.