Module: Capybara::Chrome
- Defined in:
- lib/capybara/chrome.rb,
lib/capybara/chrome/node.rb,
lib/capybara/chrome/debug.rb,
lib/capybara/chrome/driver.rb,
lib/capybara/chrome/errors.rb,
lib/capybara/chrome/browser.rb,
lib/capybara/chrome/service.rb,
lib/capybara/chrome/version.rb,
lib/capybara/chrome/rdp_client.rb,
lib/capybara/chrome/rdp_socket.rb,
lib/capybara/chrome/configuration.rb,
lib/capybara/chrome/repeat_timeout.rb,
lib/capybara/chrome/rdp_web_socket_client.rb
Defined Under Namespace
Modules: Debug, DumbTimeout, Service
Classes: Browser, Configuration, Driver, Error, JSException, Node, RDPClient, RDPSocket, RDPWebSocketClient, ResponseTimeoutError, WebSocketError
Constant Summary
collapse
- VERSION =
"0.1.23"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
27
28
29
|
# File 'lib/capybara/chrome.rb', line 27
def self.configuration
@configuration ||= Configuration.new
end
|
22
23
24
25
|
# File 'lib/capybara/chrome.rb', line 22
def self.configure(reset: false)
@configuration = nil if reset
yield configuration
end
|
.trap_interrupt ⇒ Object
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/capybara/chrome.rb', line 35
def self.trap_interrupt
previous_interrupt = trap("INT") do
@wants_to_quit = true
if previous_interrupt.respond_to?(:call)
previous_interrupt.call
else
exit 1
end
end
end
|
.wants_to_quit ⇒ Object
31
32
33
|
# File 'lib/capybara/chrome.rb', line 31
def self.wants_to_quit
@wants_to_quit
end
|