Although its working but I want to make my script more dynamic like if a value is changed in the combo box then I can Select any random value or any value from first row.
Can any one help me in this regard please!
You can try using SendKeys methhod for this as follows -
1. Click on your object
2. Click on down arrow using SendKeys.
3. Do GetROProperty and check if the selected value is the one that you want. (hope GetROProperty works here)
4. If the value you wanted is not the current item, repeat steps 2 & 3 till you get the correct value.
You can also try one other method. When you get the list of items after click on the drop down, try to see if you can identify the web elements with some generic properties.If that is the case, then you can use Descriptive Programming to click on desired object.
I hope I was able to put forward my points in a clear manner. If you still face any issues, please try to post the screenshot of the object spy for the elements in the drop down.