Sha256: 223349060de51f8c1ed822aaf6a3fc79960ec396b6c8cfff87c3ba1706091333

Contents?: true

Size: 241 Bytes

Versions: 19

Compression:

Stored size: 241 Bytes

Contents

require_relative "../lib/webdriver"

s = (Webdriver::Client.new "http://localhost:9515/").session!

s.url! "https://example.com"

3.times do |i|
  all_a_els = s.elements "css selector", "a"
  all_a_els&.first.click!
  sleep 1
end

s.delete!

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
webdriver-0.19.0 examples/find_and_click.rb
webdriver-0.18.0 examples/find_and_click.rb
webdriver-0.17.0 examples/find_and_click.rb
webdriver-0.16.0 examples/find_and_click.rb
webdriver-0.15.0 examples/find_and_click.rb
webdriver-0.14.0 examples/find_and_click.rb
webdriver-0.13.0 examples/find_and_click.rb
webdriver-0.12.0 examples/find_and_click.rb
webdriver-0.11.1 examples/find_and_click.rb
webdriver-0.11.0 examples/find_and_click.rb
webdriver-0.10.0 examples/find_and_click.rb
webdriver-0.9.1 examples/find_and_click.rb
webdriver-0.9.0 examples/find_and_click.rb
webdriver-0.8.0 examples/find_and_click.rb
webdriver-0.7.0 examples/find_and_click.rb
webdriver-0.6.4 examples/find_and_click.rb
webdriver-0.6.3 examples/find_and_click.rb
webdriver-0.6.2 examples/find_and_click.rb
webdriver-0.6.0 examples/find_and_click.rb