Sha256: 4f10e0c95f1b759d9406f970a0ccdb34ba62ee7f575ce77601877c0cb4a26386
Contents?: true
Size: 974 Bytes
Versions: 4
Compression:
Stored size: 974 Bytes
Contents
require "rubygems" require "watir-webdriver" module Cello module PageObjects class Hub attr_accessor :context attr_reader :browser def initialize hub_url, caps @browser = Watir::Browser.new( :remote, :url => hub_url, :desired_capabilities => caps ) end def visit @context.visit end def context page @context = page.new @browser end def search text @browser.text.include? text end def close @browser.close end def get_screenshot @browser.driver.save_screenshot 'screenshot.png' end def title @browser.title end def response_time #pending end def method_missing method_name, *arguments @context.send method_name, *arguments end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cello-0.0.34 | lib/cello/pageobjects/hub.rb |
cello-0.0.33 | lib/cello/pageobjects/hub.rb |
cello-0.0.32 | lib/cello/pageobjects/hub.rb |
cello-0.0.31 | lib/cello/pageobjects/hub.rb |