Hi,
Do we have 'Wait until' function or similar function to resolve the following case? It's better to provide some sample code to me.
1. It is a HTMLSelect control, its values of drop down list are generated dynamically from database by an event.
2. The value list will be generated for some time.(2-3s).
3. I would like to wait for the value list generation and then execute further test action in my automation scripts.
My current solution is using "Thread.sleep" to wait for the items generation. But I think it's not good solution. I cannot estimate the exact time for the list generation. Is there better way to execute further testing as long as the values of drop down list have already been generated?
Do we have 'Wait until' function or similar function to resolve the following case? It's better to provide some sample code to me.
1. It is a HTMLSelect control, its values of drop down list are generated dynamically from database by an event.
2. The value list will be generated for some time.(2-3s).
3. I would like to wait for the value list generation and then execute further test action in my automation scripts.
My current solution is using "Thread.sleep" to wait for the items generation. But I think it's not good solution. I cannot estimate the exact time for the list generation. Is there better way to execute further testing as long as the values of drop down list have already been generated?