class Capybara::SessionConfig
Constants
- OPTIONS
Public Instance Methods
app_host=(url)
click to toggle source
# File lib/capybara/session/config.rb, line 74 def app_host=(url) raise ArgumentError.new("Capybara.app_host should be set to a url (http://www.example.com)") unless url.nil? || (url =~ URI::Parser.new.make_regexp) @app_host = url end
default_host=(url)
click to toggle source
# File lib/capybara/session/config.rb, line 80 def default_host=(url) raise ArgumentError.new("Capybara.default_host should be set to a url (http://www.example.com)") unless url.nil? || (url =~ URI::Parser.new.make_regexp) @default_host = url end
initialize_copy(other)
click to toggle source
Calls superclass method
# File lib/capybara/session/config.rb, line 92 def initialize_copy(other) super @server_errors = @server_errors.dup end
save_and_open_page_path=(path)
click to toggle source
# File lib/capybara/session/config.rb, line 86 def save_and_open_page_path=(path) warn "DEPRECATED: #save_and_open_page_path is deprecated, please use #save_path instead. \n" "Note: Behavior is slightly different with relative paths - see documentation" unless path.nil? @save_and_open_page_path = path end
server_errors=(errors)
click to toggle source
# File lib/capybara/session/config.rb, line 69 def server_errors=(errors) (@server_errors ||= []).replace(errors.dup) end
server_host()
click to toggle source
@!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 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 wait_on_first_by_default
See {Capybara.configure}
@!method automatic_label_click
See {Capybara.configure}
@!method enable_aria_label
See {Capybara.configure}
@!method save_path
See {Capybara.configure}
@!method exact_options
See {Capybara.configure}
@!method asset_host
See {Capybara.configure}
@!method default_host
See {Capybara.configure}
@!method app_host
See {Capybara.configure}
@!method save_and_open_page_path
See {Capybara.configure}
@!method #server_host
See {Capybara.configure}
@!method server_port
See {Capybara.configure}
@!method server_errors
See {Capybara.configure}
# File lib/capybara/session/config.rb, line 58 remove_method :server_host