Sha256: 110fb62ff9e4e09ec7bc5058a7c3d0e2cf395fc742b56ec39c60de610e87c469

Contents?: true

Size: 427 Bytes

Versions: 23

Compression:

Stored size: 427 Bytes

Contents

module Webdrone
  class Browser
    def open
      @open ||= Open.new self
    end
  end

  class Open
    attr_accessor :a0

    def initialize(a0)
      @a0 = a0
    end

    def url(url)
      @a0.driver.get url
    rescue => exception
      Webdrone.report_error(@a0, exception)
    end

    def reload
      @a0.driver.navigate.refresh
    rescue => exception
      Webdrone.report_error(@a0, exception)
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
webdrone-1.7.8 lib/webdrone/open.rb
webdrone-1.7.4 lib/webdrone/open.rb
webdrone-1.7.2 lib/webdrone/open.rb
webdrone-1.7.0 lib/webdrone/open.rb
webdrone-1.6.2 lib/webdrone/open.rb
webdrone-1.6.0 lib/webdrone/open.rb
webdrone-1.5.0 lib/webdrone/open.rb
webdrone-1.4.8 lib/webdrone/open.rb
webdrone-1.4.6 lib/webdrone/open.rb
webdrone-1.4.4 lib/webdrone/open.rb
webdrone-1.4.2 lib/webdrone/open.rb
webdrone-1.4.0 lib/webdrone/open.rb
webdrone-1.3.6 lib/webdrone/open.rb
webdrone-1.3.4 lib/webdrone/open.rb
webdrone-1.3.2 lib/webdrone/open.rb
webdrone-1.3.0 lib/webdrone/open.rb
webdrone-1.2.2 lib/webdrone/open.rb
webdrone-1.2.0 lib/webdrone/open.rb
webdrone-1.1.4 lib/webdrone/open.rb
webdrone-1.1.2 lib/webdrone/open.rb