youpy/grope

add method: Env#wait_until

youpy opened this issue · 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