Sha256: f3867b078c82cc2423ad75d36b6c8d7475d45bb624d0d04f505a25b45fa8784a

Contents?: true

Size: 851 Bytes

Versions: 5

Compression:

Stored size: 851 Bytes

Contents

module Selenium
  module WebDriver
    module IPhone
      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),
            :http_client          => opts[: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

5 entries across 5 versions & 1 rubygems

Version Path
selenium-webdriver-2.5.0 lib/selenium/webdriver/iphone/bridge.rb
selenium-webdriver-2.4.0 lib/selenium/webdriver/iphone/bridge.rb
selenium-webdriver-2.3.2 lib/selenium/webdriver/iphone/bridge.rb
selenium-webdriver-2.3.0 lib/selenium/webdriver/iphone/bridge.rb
selenium-webdriver-2.2.0 lib/selenium/webdriver/iphone/bridge.rb