class Capybara::SessionConfig
Constants
- OPTIONS
Public Instance Methods
Source
# File lib/capybara/session/config.rb, line 85 def app_host=(url) unless url.nil? || url.match?(URI::DEFAULT_PARSER.make_regexp) raise ArgumentError, "Capybara.app_host should be set to a url (http://www.example.com). Attempted to set #{url.inspect}." end @app_host = url end
Source
# File lib/capybara/session/config.rb, line 94 def default_host=(url) unless url.nil? || url.match?(URI::DEFAULT_PARSER.make_regexp) raise ArgumentError, "Capybara.default_host should be set to a url (http://www.example.com). Attempted to set #{url.inspect}." end @default_host = url end
Source
# File lib/capybara/session/config.rb, line 115 def initialize_copy(other) super @server_errors = @server_errors.dup end
Source
# File lib/capybara/session/config.rb, line 80 def server_errors=(errors) (@server_errors ||= []).replace(errors.dup) end
Source
# File lib/capybara/session/config.rb, line 69 remove_method :server_host
@!method always_include_port
See {Capybara.configure}
@!method run_server
See {Capybara.configure}
@!method default_selector
See {Capybara.configure}
@!method default_max_wait_time
See {Capybara.configure}
@!method default_retry_interval
See {Capybara.configure}
@!method ignore_hidden_elements
See {Capybara.configure}
@!method automatic_reload
See {Capybara.configure}
@!method match
See {Capybara.configure}
@!method exact
See {Capybara.configure}
@!method raise_server_errors
See {Capybara.configure}
@!method visible_text_only
See {Capybara.configure}
@!method automatic_label_click
See {Capybara.configure}
@!method enable_aria_label
See {Capybara.configure}
@!method enable_aria_role
See {Capybara.configure}
@!method save_path
See {Capybara.configure}
@!method asset_host
See {Capybara.configure}
@!method default_host
See {Capybara.configure}
@!method app_host
See {Capybara.configure}
@!method server_host
See {Capybara.configure}
@!method server_port
See {Capybara.configure}
@!method server_errors
See {Capybara.configure}
@!method default_set_options
See {Capybara.configure}
@!method disable_animation
See {Capybara.configure}
@!method test_id
See {Capybara.configure}
@!method default_normalize_ws
See {Capybara.configure}
@!method w3c_click_offset
See {Capybara.configure}
Source
# File lib/capybara/session/config.rb, line 111 def test_id=(id) @test_id = id&.to_sym end
Set an attribute to be optionally matched against the locator for builtin selector types. This attribute will be checked by builtin selector types whenever id would normally be checked. If ‘nil` then it will be ignored.
@param [String, Symbol, nil] id Name of the attribute to use as the test id