Class: Selenium::WebDriver::IE::Options
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Selenium::WebDriver::Options
|
Defined in: | rb/lib/selenium/webdriver/ie/options.rb |
Constant Summary
-
BROWSER =
# File 'rb/lib/selenium/webdriver/ie/options.rb', line 48'internet explorer'
-
CAPABILITIES =
# File 'rb/lib/selenium/webdriver/ie/options.rb', line 27{ browser_attach_timeout: 'browserAttachTimeout', element_scroll_behavior: 'elementScrollBehavior', full_page_screenshot: 'ie.enableFullPageScreenshot', ensure_clean_session: 'ie.ensureCleanSession', file_upload_dialog_timeout: 'ie.fileUploadDialogTimeout', force_create_process_api: 'ie.forceCreateProcessApi', force_shell_windows_api: 'ie.forceShellWindowsApi', ignore_protected_mode_settings: 'ignoreProtectedModeSettings', ignore_zoom_level: 'ignoreZoomSetting', initial_browser_url: 'initialBrowserUrl', native_events: 'nativeEvents', persistent_hover: 'enablePersistentHover', require_window_focus: 'requireWindowFocus', use_per_process_proxy: 'ie.usePerProcessProxy', use_legacy_file_upload_dialog_handling: 'ie.useLegacyFileUploadDialogHandling', attach_to_edge_chrome: 'ie.edgechromium', edge_executable_path: 'ie.edgepath', ignore_process_match: 'ie.ignoreprocessmatch', silent: 'silent' }.freeze
-
KEY =
# File 'rb/lib/selenium/webdriver/ie/options.rb', line 24'se:ieOptions'
-
SCROLL_BOTTOM =
# File 'rb/lib/selenium/webdriver/ie/options.rb', line 261
-
SCROLL_TOP =
# File 'rb/lib/selenium/webdriver/ie/options.rb', line 250
::Selenium::WebDriver::Options
- Inherited
Class Attribute Summary
::Selenium::WebDriver::Options
- Inherited
Class Method Summary
-
.new(**opts) ⇒ Options
constructor
Create a new
Options
instance.
::Selenium::WebDriver::Options
- Inherited
.chrome, .edge, .firefox, .ie, | |
.internet_explorer | Alias for Options.ie. |
.microsoftedge | Alias for Options.edge. |
.new, .safari, .set_capabilities |
Instance Attribute Summary
Instance Method Summary
-
#add_argument(arg)
Add a command-line argument to use when starting Internet Explorer.
- #process_browser_options(browser_options) private
::Selenium::WebDriver::Options
- Inherited
#==, | |
#add_option | Add a new option not yet handled by bindings. |
#eql? | Alias for Options#==. |
#camel_case, #camelize?, #convert_json_key, #generate_as_json, #process_browser_options, #process_json_hash, #process_w3c_options, #w3c?, #as_json |
Constructor Details
.new(**opts) ⇒ Options
Create a new Options
instance
# File 'rb/lib/selenium/webdriver/ie/options.rb', line 83
def initialize(**opts) @args = (opts.delete(:args) || []).to_set super @options[:native_events] = true if @options[:native_events].nil? end
Instance Attribute Details
#args (readonly)
[ GitHub ]# File 'rb/lib/selenium/webdriver/ie/options.rb', line 50
attr_reader :args
Instance Method Details
#add_argument(arg)
Add a command-line argument to use when starting Internet Explorer.
# File 'rb/lib/selenium/webdriver/ie/options.rb', line 96
def add_argument(arg) @args << arg end
#process_browser_options(browser_options) (private)
[ GitHub ]# File 'rb/lib/selenium/webdriver/ie/options.rb', line 102
def ( ) = [KEY] ['ie.browserCommandLineSwitches'] = @args.to_a.join(' ') if @args.any? end