bing098911
4 years agoNew Contributor
Help needed in parametrizing lists inside dropdowns
Can someone provide details on how to add parameters to populate an item from a dropdown list? I didn't find any community support threads so my apologies if this has already been mentioned. I have some drop downs that show all list items and some that have too many items so you must type all or part of the name to get it to populate in the list results. I need a solution for both! This will be extremely useful to data drive my test cases. Thank you!!!
- Hi bing098911 -
Take a look at this document - there is a section that covers how to use a variable in an xpath https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/xpath-expressions-and-css-selectors.html
I don’t believe it’s possible to use a parameter directly in the xpath, but you can drive a variable based on your parameter.
Let me know if you have further questions.
Cheers,
Emma