I have two drop-down lists, one of which contains a list of countries and one for states / regions that are not populated until one of the countries is selected. Both of these drop-down lists are wrapped in the update panel. When I select USA, the drop-down list of states is populated with 50 states, and I can move on from there.
We use Selenium to run tests of this code, and tests always break when it reaches the status dropdown. Creating a list of states takes too much time, or perhaps it just cannot find the values, because they are not in the original html that is being displayed. I saw some things about javascript "WaitForCondition", but cannot find details on how to use this in selenium documentation. I'm not crazy javascript, but I'm not the best either. Can someone explain to me how you can solve my dilemma, and if this requires knowing how the WaitForCondition field is, can you explain to me how I can make this work?
For the record, I saw this message: (click here to get the postoverflow post semi-task) , but I donβt understand how to relate it to my own situation. Thanks in advance for everything you can give me.
source
share