Sha256: 405c0d48d35ec5902b65c3a6abe766f22ea8f6de5a24efd570d6e62ffc6c8b43
Contents?: true
Size: 1.57 KB
Versions: 8
Compression:
Stored size: 1.57 KB
Contents
module Selenium module WebDriver module IE # # @api private # class Bridge < Remote::Bridge HOST = Platform.localhost DEFAULT_PORT = 5555 DEFAULT_TIMEOUT = 30 def initialize(opts = {}) timeout = opts.delete(:timeout) { DEFAULT_TIMEOUT } port = opts.delete(:port) { PortProber.above(DEFAULT_PORT) } http_client = opts.delete(:http_client) ignore_mode = opts.delete(:introduce_flakiness_by_ignoring_security_domains) native_events = opts.delete(:native_events) != false unless opts.empty? raise ArgumentError, "unknown option#{'s' if opts.size != 1}: #{opts.inspect}" end @server = Server.get @port = @server.start Integer(port), timeout caps = Remote::Capabilities.internet_explorer if ignore_mode caps['ignoreProtectedModeSettings'] = true end caps['nativeEvents'] = native_events remote_opts = { :url => @server.uri, :desired_capabilities => caps } remote_opts[:http_client] = http_client if http_client super(remote_opts) end def browser :internet_explorer end def driver_extensions [DriverExtensions::TakesScreenshot, DriverExtensions::HasInputDevices] end def quit super nil ensure @server.stop end end # Bridge end # IE end # WebDriver end # Selenium
Version data entries
8 entries across 8 versions & 1 rubygems