Sha256: 91f64e9c48a57554e4f66c5e0a6e7d91ef9f579a99d32c4898cd5a41f5ff9c1a

Contents?: true

Size: 477 Bytes

Versions: 6

Compression:

Stored size: 477 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, Kernel.caller_locations)
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
webdrone-1.0.4 lib/webdrone/open.rb
webdrone-1.0.0 lib/webdrone/open.rb
webdrone-0.9.9 lib/webdrone/open.rb
webdrone-0.9.8 lib/webdrone/open.rb
webdrone-0.9.2 lib/webdrone/open.rb
webdrone-0.9.0 lib/webdrone/open.rb