Sha256: 5dbe3a0db3855ab5dbd0e526c2765081fcbc2f189995d56512b4302e160ad71d

Contents?: true

Size: 922 Bytes

Versions: 6

Compression:

Stored size: 922 Bytes

Contents

module Selenium
  module WebDriver
    module IPhone
      #
      # @api private
      #

      class Bridge < Remote::Bridge

        DEFAULT_URL = "http://#{Platform.localhost}:3001/hub/"

        def initialize(opts = {})
          remote_opts = {
            :url                  => opts.fetch(:url, DEFAULT_URL),
            :desired_capabilities => opts.fetch(:desired_capabilities, capabilities),
          }

          remote_opts[:http_client] = opts[:http_client] if opts.has_key?(:http_client)

          super remote_opts
        end

        def browser
          :iphone
        end

        def driver_extensions
          [
            DriverExtensions::TakesScreenshot,
            DriverExtensions::HasInputDevices
          ]
        end

        def capabilities
          @capabilities ||= Remote::Capabilities.iphone
        end

      end # Bridge
    end # IPhone
  end # WebDriver
end # Selenium

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
selenium-webdriver-2.18.0.rc2 lib/selenium/webdriver/iphone/bridge.rb
selenium-webdriver-2.18.0.rc1 lib/selenium/webdriver/iphone/bridge.rb
selenium-webdriver-2.17.0 lib/selenium/webdriver/iphone/bridge.rb
selenium-webdriver-2.16.0 lib/selenium/webdriver/iphone/bridge.rb
selenium-webdriver-2.15.0 lib/selenium/webdriver/iphone/bridge.rb
selenium-webdriver-2.14.0 lib/selenium/webdriver/iphone/bridge.rb