Class: Cukunity::IOS::UIAutomationSlave
- Inherits:
-
Object
- Object
- Cukunity::IOS::UIAutomationSlave
- Defined in:
- lib/cukunity/drivers/iOS/uiautomation_slave.rb
Instance Method Summary collapse
Instance Method Details
#exchange(host, port, result = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/cukunity/drivers/iOS/uiautomation_slave.rb', line 8 def exchange(host, port, result = {}) sock = TCPSocket.new(host, port) begin sock.puts result.to_json JSON.parse(sock.gets.chomp) ensure sock.close unless sock.nil? end end |