youpy opened this issue 13 years ago · 0 comments
# wait until element with classname 'foo' are appeared # timeout = 3 seconds env.wait_until(3) do |env| env.document.querySelectorAll('.foo').size > 0 end