class SeleniumGridConsoleParser::Nodes::GridNodeClient
Public Class Methods
new(url)
click to toggle source
# File lib/nodes/client/grid_node_client.rb, line 6 def initialize(url) @url = url end
Public Instance Methods
sessions()
click to toggle source
# File lib/nodes/client/grid_node_client.rb, line 10 def sessions begin response = HTTParty.get("#{@url}/wd/hub/sessions", timeout: 10) rescue Net::ReadTimeout raise NodeDownException end return response.body if response.code == 200 end