ebrehault / resurrectio

CasperJS test recorder Chrome extension
GNU General Public License v2.0
721 stars 106 forks source link

Record with timestamp #19

Open mizchi opened 10 years ago

mizchi commented 10 years ago

I tried resurrectio to my app but it doesn't works because my app has many async and time baesd event like animation.

I feel resurrectio has great possibility for testing. If I had enough time, I will implement it for us.

timelf123 commented 10 years ago

you can add waitForSelector or other CasperJS wait methods manually

Edit: see below

ebrehault commented 10 years ago

All the recorded actions are wrapped in waitForSelector calls, so it should handle async behaviours properly For instance if you click on a link that was not immediately visible because it is revealed after an animation, the corresponding .click will be enclosed in a waitForSelector(".your-link-selector") so Casper will gently wait for the link to be available, and then produces the click.