Sha256: f88a0f6fc524fdf4666c538fdb79d156d7d56114620fd376e67b840a0887429a
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
module Polterheist class TheMLS include Capybara::DSL Capybara.app_host = "http://www.themls.com" def locate_property(address) visit('/m/') input_box = find(".SearchContainer > input[rel='searchField']") input_box.set address click_on "Search" loop do if page.has_css?(".mainImage") return page.body elsif page.has_text? "No Homes Found" return false else sleep 1 end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polterheist-0.0.3 | lib/polterheist/themls.rb |
polterheist-0.0.2 | lib/polterheist/themls.rb |