I've been creating some basic tests against my company's application to evaluate Xebium.
Our app is a single page app with lots of ajax and etc., so pretty much every assertion will involve some amount of waiting for the right elements to arrive and be available for interaction in the DOM.
Using the Selenium IDE in firefox I am able to create several Selenium scripts that run through a bunch of basic operations successfully. Exporting from the IDE with the Xebium formatter, the scripts make use of the following pattern many, many times:
| ensure | do | waitForElementPresent | on | css=span:contains('Some Text') |
| ensure | do | click | on | css=span:contains('Some Text') |
However, these lines always succeed when run in Selenium IDE. And they always fail when run in Fitnesse/Xebium.
I have tried replacing the css selectors in the script with the equivalent xpath selectors and they still fail. And it's not a matter of timing or timeout settings as I can see the fitnesse run just sitting and waiting and retrying well after the element has arrived.
What else can I try here? The Selenium IDE runs prove that the selectors are correct and should eventually resolve as "present". But the Xebium runs fail to see them every time...?
Thanks.