cancel
Showing results for 
Search instead for 
Did you mean: 

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

V_1
New Contributor

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

3 REPLIES
Community Hero

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

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
New Contributor

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

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

Highlighted
Community Leader

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

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. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Top Kudoed Authors
Are You In?

Meet the Community Leaders!

SmartBear Connect is an excellent opportunity for training, in-person support, and networking.

GET YOUR TICKET WITH $100 OFF