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.22"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
26
27
28
|
# File 'lib/capybara/chrome.rb', line 26
def self.configuration
@configuration ||= Configuration.new
end
|
21
22
23
24
|
# File 'lib/capybara/chrome.rb', line 21
def self.configure(reset: false)
@configuration = nil if reset
yield configuration
end
|
.trap_interrupt ⇒ Object
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/capybara/chrome.rb', line 34
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
30
31
32
|
# File 'lib/capybara/chrome.rb', line 30
def self.wants_to_quit
@wants_to_quit
end
|