Sha256: f6a3ec5b3e0eafba7700e2d6dd7144167060f20a7581fe4364eb4d17023deaf7
Contents?: true
Size: 902 Bytes
Versions: 1
Compression:
Stored size: 902 Bytes
Contents
# Smart Driver Smart selenium base web driver written in Ruby. [![Gyazo](http://i.gyazo.com/511b5265c67d41fc2cd7394c1eee3b7a.gif)](http://gyazo.com/511b5265c67d41fc2cd7394c1eee3b7a) ## Installation 1. Install gem as you like. $ gem install kirchhoff 2. Install chromedriver. (Below is the MacOS example.) $ brew install chromedriver ## Demo ```rb require 'kirchhoff' driver = Kirchhoff::Driver.new driver.go 'https://www.facebook.com/' driver.find('input#email').fill('mail@gogotanaka.com') driver.find('input#pass').fill('password') driver.submit driver.find_text('メールアドレスが正しくありません') do |e| unless e # If there is no text 'メールアドレスが正しくありません' end end driver.wait_element("div#wait", timeout: 5) driver.wait_text("wait for you...", timeout: 5, maybe: false) #=> raise err if there is no text 'wait for you...' ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kirchhoff-0.0.3 | README.md |