-
1. Re: how to wait a combo rerender after loading data using ajax request Selenium test
nadya.staneva Sep 29, 2010 5:13 AM (in response to nadya.staneva)I have found a solution but I don't think it's the best idea:
Before we select the brand of the car in the first combo we add dynamically an attribute to the second combo(for the model) showing that it is not rerendered yet. Then we select the brand of the car and wait (for the ajax requests to finish) with the funcitons shown in this article: http://blogs.nuxeo.com/dev/2009/03/selenium-ajax-requests.html .Next we wait until we are sure that the attribute in the combo is not there (thus the combo is already rerendered) and the we are sure that the combo has loaded all its options and we can select the model of the car.
If anyone has a better solution that is more general and not using things like adding an attribute and then checking if it is there, please tell me.