10-12-2009, 08:03 PM
Sometimes the old tricks are the best tricks.
You could adapt the code to retrieve the number of items earilier, then compare that value to the current value to see if its different...
This might be a little more "reusable" and would allow for the standard "select something" type messages in a drop down. You could also adapt it to recognize if the "select something" messages were removed when repopulated or a number of other conditions.
Glad you have a working solution now.
You could adapt the code to retrieve the number of items earilier, then compare that value to the current value to see if its different...
Code:
currcount = Browser(dpBrowser).Page(dpPage).WebList("html id:=.*ddlCountry.*").GetROProperty("Items count")
While Browser(dpBrowser).Page(dpPage).WebList("html id:=.*ddlCountry.*").GetROProperty("Items count") <= currcount
wait(1)
Loop
This might be a little more "reusable" and would allow for the standard "select something" type messages in a drop down. You could also adapt it to recognize if the "select something" messages were removed when repopulated or a number of other conditions.
Glad you have a working solution now.