class Cello::PageObjects::Browser
Attributes
browser[R]
context[RW]
Public Class Methods
new(browser)
click to toggle source
# File lib/cello/pageobjects/browser.rb, line 10 def initialize browser @browser = Watir::Browser.new browser end
Public Instance Methods
close()
click to toggle source
# File lib/cello/pageobjects/browser.rb, line 26 def close @browser.close end
get_screenshot()
click to toggle source
# File lib/cello/pageobjects/browser.rb, line 30 def get_screenshot @browser.driver.save_screenshot 'screenshot.png' end
method_missing(method_name, *arguments)
click to toggle source
# File lib/cello/pageobjects/browser.rb, line 42 def method_missing method_name, *arguments @context.send method_name, *arguments end
response_time()
click to toggle source
# File lib/cello/pageobjects/browser.rb, line 38 def response_time #pending end
search(text)
click to toggle source
# File lib/cello/pageobjects/browser.rb, line 22 def search text @browser.text.include? text end
title()
click to toggle source
# File lib/cello/pageobjects/browser.rb, line 34 def title @browser.title end
visit()
click to toggle source
# File lib/cello/pageobjects/browser.rb, line 14 def visit @context.visit end