I am currently running a test that checks a specific item and then does some things. The element takes a bit for javascript to finish kicking, but within the timer I have Capybara for.
For some reason
assert session.has_xpath?(xpath_route)
works fine but
assert link=session.first(:xpath, xpath_route)
does not work, saying that he cannot find the item. And fast - long before the wait timer ends.
I can only assume that this means that the timer only applies to helpers, not to searchers, which is good, but how can I make it keep searching until it finds the item I'm looking for?
source share