Bootstrap client not working?

9 views
Skip to first unread message

João Neves

unread,
Mar 8, 2016, 4:48:21 AM3/8/16
to zombie.js
            browser.wait(500000, function(window){
               
return window.browser.assert.element('[href="/manage-listing/10875466/description"]');
           
}, done);

I'm trying to automatize some things in Airbnb, this where an apartment's description is changed.

The page starts with an empty space in the middle and all the rest is loaded with javascript. That href appears at the end of it.
When I use that code it sometimes times out (even with all that waiting time), other times it sends me to the wrong url, maybe because it's in the middle of a redirect or something, and other times it is actually in the right page but the page still hasn't loaded. What am I doing wrong?

Can someone explain me browser.wait in more detail, please? I can't find any good examples anywhere.
Thank you.

João Neves

unread,
Mar 8, 2016, 6:30:25 AM3/8/16
to zombie.js
I don't think the callback is being executed. Is there any documentation for this function?

João Neves

unread,
Mar 8, 2016, 9:05:01 AM3/8/16
to zombie.js
It is being executed now. But there's a javascript error on the client side during browser wait. How do I skip it?
Reply all
Reply to author
Forward
0 new messages