lib/gondola/selenium.rb
# Same function definition as the selenium gem but without
# writing to standard out
Same function definition as the selenium gem but without
writing to standard out
Same function definition as the selenium gem but without writing to standard out
def http_post(data)
      start = Time.now
      called_from = caller.detect{|line| line !~ /(selenium-client|vendor|usr\/lib\/ruby|\(eval\))/i}
      http = Net::HTTP.new(@host, @port)
      http.open_timeout = default_timeout_in_seconds
      http.read_timeout = default_timeout_in_seconds
      response = http.post('/selenium-server/driver/', data, ::Selenium::Client::HTTP_HEADERS)
      [ response.body[0..1], response.body ]
    end
def http_post ( data ) start = Time . now called_from = caller . detect { | line | line !~ / (selenium-client|vendor|usr \/ lib \/ ruby| \( eval \) ) /i } http = Net :: HTTP . new ( @host , @port ) http . open_timeout = default_timeout_in_seconds http . read_timeout = default_timeout_in_seconds response = http . post ( '/selenium-server/driver/' , data , :: Selenium :: Client :: HTTP_HEADERS ) [ response . body [ 0 .. 1 ] , response . body ] end
Same function definition as the selenium gem but without
writing to standard out
Same function definition as the selenium gem but without writing to standard out
data
<not_specific>