Sha256: b10c014fa21f1a8c8afa86a371b6c6eb4c27b7ac1d7a2644ca3674c81e9ea3da

Contents?: true

Size: 468 Bytes

Versions: 14

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

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

  class Open
    attr_reader :a0

    def initialize(a0)
      @a0 = a0
    end

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
webdrone-1.18.2 lib/webdrone/open.rb
webdrone-1.18.0 lib/webdrone/open.rb
webdrone-1.16.2 lib/webdrone/open.rb
webdrone-1.16.0 lib/webdrone/open.rb
webdrone-1.14.0 lib/webdrone/open.rb
webdrone-1.12.0 lib/webdrone/open.rb
webdrone-1.10.0 lib/webdrone/open.rb
webdrone-1.8.12 lib/webdrone/open.rb
webdrone-1.8.10 lib/webdrone/open.rb
webdrone-1.8.8 lib/webdrone/open.rb
webdrone-1.8.6 lib/webdrone/open.rb
webdrone-1.8.4 lib/webdrone/open.rb
webdrone-1.8.2 lib/webdrone/open.rb
webdrone-1.8.0 lib/webdrone/open.rb