Module: Capybara::Poltergeist

Defined in:
lib/capybara/poltergeist.rb,
lib/capybara/poltergeist/node.rb,
lib/capybara/poltergeist/client.rb,
lib/capybara/poltergeist/cookie.rb,
lib/capybara/poltergeist/driver.rb,
lib/capybara/poltergeist/errors.rb,
lib/capybara/poltergeist/server.rb,
lib/capybara/poltergeist/browser.rb,
lib/capybara/poltergeist/command.rb,
lib/capybara/poltergeist/utility.rb,
lib/capybara/poltergeist/version.rb,
lib/capybara/poltergeist/inspector.rb,
lib/capybara/poltergeist/network_traffic.rb,
lib/capybara/poltergeist/web_socket_server.rb

Defined Under Namespace

Modules: NetworkTraffic Classes: Browser, BrowserError, Client, ClientError, Command, Cookie, DeadClient, Driver, Error, FrameNotFound, Inspector, InvalidSelector, JSErrorItem, JavascriptError, KeyError, MouseEventFailed, NoSuchWindowError, Node, NodeError, ObsoleteNode, PhantomJSFailed, PhantomJSTooOld, ScriptTimeoutError, Server, StatusFailError, TimeoutError, UnsupportedFeature, WebSocketServer

Constant Summary collapse

VERSION =
"1.18.1"

Class Method Summary collapse

Class Method Details

.mri?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/capybara/poltergeist/utility.rb', line 10

def mri?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"
end

.windows?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/capybara/poltergeist/utility.rb', line 6

def windows?
  RbConfig::CONFIG["host_os"] =~ /mingw|mswin|cygwin/
end