Sha256: f9267879496626ff0524efa07e899a526980235cbcd69676360cd6a41bf3ddf4
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 Bytes
Contents
require "rubygems" require "watir-webdriver" module Cello module Structure class Browser attr_accessor :context attr_reader :browser def initialize(browser) @browser = Watir::Browser.new browser 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cello-0.0.19 | lib/cello/structure/browser.rb |