lib/selenium/webdriver/safari/server.rb in selenium-webdriver-2.21.1 vs lib/selenium/webdriver/safari/server.rb in selenium-webdriver-2.21.2.rc1
- old
+ new
@@ -17,11 +17,11 @@
@server.close if @server && !@server.closed?
@ws.close if @ws && !@ws.closed?
end
def send(command)
- json = MultiJson.encode(command)
+ json = WebDriver.json_dump(command)
puts ">>> #{json}" if $DEBUG
frame = LibWebSocket::Frame.new(json).to_s
@ws.write frame
@@ -47,11 +47,11 @@
@frame.append(data)
end
puts "<<< #{msg}" if $DEBUG
- MultiJson.decode msg
+ WebDriver.json_load msg
end
def ws_uri
"ws://#{Platform.localhost}:#{@port}/wd"
end
@@ -133,6 +133,6 @@
end
end
end
end
-end
\ No newline at end of file
+end