Sha256: 5927eecd40b1b5d0db6c48d5a080fdfeedec0e597076bfd19579495ad64c61c6
Contents?: true
Size: 780 Bytes
Versions: 1
Compression:
Stored size: 780 Bytes
Contents
require File.join(File.dirname(__FILE__), "element_helper") require "rubygems" require "selenium-webdriver" require "watir-webdriver" module Cello module Structure class Page extend Cello::Structure::ElementHelper attr_reader :browser def initialize(url) @browser = Watir::Browser.new :firefox @browser.goto url end def visit end def search(text) @browser.text.include? text end def close @browser.close end def browser @browser end def get_picture @browser.driver.save_screenshot 'screenshot.png' end def get_title @browser.titles end def get_response_time #pending end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cello-0.0.12 | lib/cello/page.rb |