Hi Jean-Noel, flushing the ui queues is a synchronous operation, but the browser may need some additional time to actually render all the changes. I've noticed problems like this when I tried to run tests with no delay in between commands: The browser will simply be too busy executing JavaScript to render. Does WebDriver have an equivalent to Selenium's setSpeed? If so, I suggest you try setting it to something like 150ms. Not a perfect solution, I know :-\
Regards, Daniel On 10/03/2011 10:00 PM, Jean-Noël Rivasseau wrote: > Hello, > > I have a Selenium test (WebDriver, actually, as it is much better) > that fails intermitently on Firefox. I've narrowed the problem down to > a container with a Dock layout. I add to the west edge a widget, then > add another one also to the west edge. > > Then I want to click on the second widget. Sometimes the click is not > sent to the correct coordinates; it is sent to the coordinates of the > first widget (as if the first widget was not there). If I never add > the first widget, I never get the problem. So I think what happens is > that the update of the display of the second widget is somehow delayed > on some cases, while Qooxdoo is computing the space for the first > widget. Anyway, to make my test run 100% of the time, I need to wait > until I am sure the browser have correctly updated / displayed all > widgets. > > How can I do that? I tried to manually call > > driver.executeScript("qx.ui.core.queue.Manager.flush();") > > in my test, but it had no effect. I think that somehow Qx sets a > timeout on some update, and I need to wait until that update to > happen. > > Thanks > > Jean-Noel > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel