I have two dropdown lists, one containing a list of countries and one for states/regions that is not populated until one of the countries is selected. Both of these dropdowns are wrapped in an updatepanel. When I select the USA, the state dropdown list is filled with the 50 states and I am able to move forward from there.
We are using Selenium to run tests on this code, and the tests always break when it reaches the state dropdown. It either takes too long to generate the state list, or perhaps it just can't find the values since they are not in the initial html that is rendered. I've seen some things about a javascript "WaitForCondition" field, but can't find any details about how to use this in the selenium documentation. I'm not a javascript slouch, but am not the greatest with it either. Can anyone explain to me how you might go about solving my dilemma, and if it happens to require knowledge of how the WaitForCondition field, can you explain to me how I can get that to work?
For the record, I have seen this post: (click here for semi-useful stackoverflow post) but I do not understand how to relate it to my own situation. Thanks in advance for anything you can give me.