class Cello::PageObjects::Hub

Attributes

browser[R]
context[RW]

Public Class Methods

new(hub_url, caps) click to toggle source
# File lib/cello/pageobjects/hub.rb, line 10
def initialize hub_url, caps
  @browser = 
    Watir::Browser.new(  
                       :remote,  
                       :url => hub_url,  
                       :desired_capabilities => caps
    )
end

Public Instance Methods

close() click to toggle source
# File lib/cello/pageobjects/hub.rb, line 31
def close
  @browser.close
end
get_screenshot() click to toggle source
# File lib/cello/pageobjects/hub.rb, line 35
def get_screenshot
  @browser.driver.save_screenshot 'screenshot.png'
end
method_missing(method_name, *arguments) click to toggle source
# File lib/cello/pageobjects/hub.rb, line 47
def method_missing method_name, *arguments
  @context.send method_name, *arguments
end
response_time() click to toggle source
# File lib/cello/pageobjects/hub.rb, line 43
def response_time
  #pending
end
title() click to toggle source
# File lib/cello/pageobjects/hub.rb, line 39
def title
  @browser.title
end
visit() click to toggle source
# File lib/cello/pageobjects/hub.rb, line 19
def visit
  @context.visit
end