Sha256: c5f687ac11395d50405a91abe5448ae894d3ee838684fe7571f17b9c5ac4a294

Contents?: true

Size: 371 Bytes

Versions: 14

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

module Webdrone
  class Browser
    def exec
      @exec ||= Exec.new self
    end
  end

  class Exec
    attr_reader :a0

    def initialize(a0)
      @a0 = a0
    end

    def script(script, *more)
      @a0.driver.execute_script(script, *more)
    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/exec.rb
webdrone-1.18.0 lib/webdrone/exec.rb
webdrone-1.16.2 lib/webdrone/exec.rb
webdrone-1.16.0 lib/webdrone/exec.rb
webdrone-1.14.0 lib/webdrone/exec.rb
webdrone-1.12.0 lib/webdrone/exec.rb
webdrone-1.10.0 lib/webdrone/exec.rb
webdrone-1.8.12 lib/webdrone/exec.rb
webdrone-1.8.10 lib/webdrone/exec.rb
webdrone-1.8.8 lib/webdrone/exec.rb
webdrone-1.8.6 lib/webdrone/exec.rb
webdrone-1.8.4 lib/webdrone/exec.rb
webdrone-1.8.2 lib/webdrone/exec.rb
webdrone-1.8.0 lib/webdrone/exec.rb