Module: Undead

Defined in:
lib/undead.rb,
lib/undead/agent.rb,
lib/undead/client.rb,
lib/undead/driver.rb,
lib/undead/errors.rb,
lib/undead/server.rb,
lib/undead/browser.rb,
lib/undead/command.rb,
lib/undead/utility.rb,
lib/undead/version.rb,
lib/undead/web_socket_server.rb

Defined Under Namespace

Classes: Agent, Browser, BrowserError, Client, ClientError, Command, DeadClient, Driver, Error, FrameNotFound, InvalidSelector, JSErrorItem, JavascriptError, MouseEventFailed, NoSuchWindowError, NodeError, ObsoleteNode, PhantomJSFailed, PhantomJSTooOld, Server, StatusFailError, TimeoutError, WebSocketServer

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.agentObject



3
4
5
# File 'lib/undead.rb', line 3

def agent
  @agent ||= Agent.new
end

.get(url) ⇒ Object



7
8
9
# File 'lib/undead.rb', line 7

def get(url)
  agent.get(url)
end

.windows?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/undead/utility.rb', line 3

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