Last post Mar 07, 2009 10:13 AM by pisoias
Mar 02, 2009 07:20 AM|pisoias|LINK
How can I wait for the postback when selecting an item in a DropDownList that has AutoPostBack ?
Mar 02, 2009 07:45 AM|asifchouhan|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 08:23 AM|pisoias|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 01:37 PM|farmas|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 10:13 AM|pisoias|LINK