Sha256: cf70bbbd9ee41d6396e3c4fb3a29b685446f9c3097baabd83acf87e8ecb8afda

Contents?: true

Size: 860 Bytes

Versions: 1

Compression:

Stored size: 860 Bytes

Contents

require 'metallize/version'
require 'selenium-webdriver'
require 'pp'

require 'metallize/page'
require 'metallize/element_matcher'

require 'metallize/form'
require 'metallize/form/field'
require 'metallize/form/button'
require 'metallize/form/hidden'
require 'metallize/form/submit'
require 'metallize/form/text'
require 'metallize/form/multi_select_list'
require 'metallize/form/select_list'
require 'metallize/form/option'

require 'metallize/page'
require 'metallize/page/link'

class Metallize

  attr_reader :driver

  def initialize(browser)
    @driver = Selenium::WebDriver.for browser
  end

  def get(uri)
    driver.get(uri)
    Page.new(driver)
  end

  def quit
    driver.quit
  end

  alias :close :quit

  def method_missing(sym)
    driver.send sym
  end

  def self.inspect
    'Metallize; Mechanize API using Selenium-WebDriver'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metallize-0.0.1 lib/metallize.rb