Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 07, 2009 02:13 PM by pisoias
Mar 02, 2009 11:20 AM|LINK
How can I wait for the postback when selecting an item in a DropDownList that has AutoPostBack ?
Mar 02, 2009 11:45 AM|LINK
I can't get your question wait for what?
If Dropdownlist has the AutoPostBack property is set to True
Automatically when the use selects an item in Dropdownlist SelectedValue Event is fired by default write your logic there.
Mar 02, 2009 12:23 PM|LINK
I need something like the Click method (that has WaitFor.Postback) to use with SetSelectedIndex, because SetSelectedIndex does not wait for the postback.
Mar 02, 2009 05:37 PM|LINK
Currently WaitFor.Postback is only supported on the Click method. Supporting CommandParameters on the SetSelectedIndex and SetTextBox methods are a feature request that we are considering for the next release. Meanwhile, you can make use of the other wait
methods to block the execution of your test until the "autopostback" returns. Assuming that something in the UI of your page changes in response to the dropdown selection you can use one of the following:
Hope if helps,
Mar 07, 2009 02:13 PM|LINK