Danny Leblond
unread,Aug 5, 2009, 9:52:08 AM8/5/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to webdriver
Hey all,
I've been debating heavily on the best location to block while waiting
for an Ajax call to complete returning new elements. For context, I
have a modal box that loads a standard 'empty' box then the Ajax call
fills in the required elements depending on the requirements of the
specific modal. My question is should I block on the 'modalOpen'
command waiting for a final element to appear (or what I expect to be
the final element), which means the modalOpen would have to have some
knowledge of whats expected to be loaded, or should I block on the
actions within the the modal (so if I'm typing in three boxes each
element would poll the ui exponentially until the element is found or
timesout).
Is one of these two options generally accepted or used more then the
other? Are there any negatives to either which I may be overlooking?
Thanks in advance,
Danny