@private
# File chrome/src/rb/lib/selenium/webdriver/chrome/command_executor.rb, line 36 def close stop_listening close_sockets @server.close unless @server.closed? rescue IOError nil end
# File chrome/src/rb/lib/selenium/webdriver/chrome/command_executor.rb, line 21 def execute(command) until accepted_any? Thread.pass sleep 0.01 end json = command.to_json data = JSON_TEMPLATE % [json.length, json] @next_socket.write data @next_socket.close JSON.parse read_response(@queue.pop) end
Generated with the Darkfish Rdoc Generator 2.