Sha256: 017446ee9456592e58b15bfe2e3abdb1d647e71cda9c8f81feede3a79e8ce0df

Contents?: true

Size: 325 Bytes

Versions: 2

Compression:

Stored size: 325 Bytes

Contents

require 'grid'

params={}
params[:controller_uri] = 'druby://10.0.1.3:11235'
params[:browser]        = 'firefox'

Grid.control(params) do |driver, index|
  driver.navigate.to 'http://google.com'
  element = driver.find_element(:name, 'q')
  element.send_keys 'gridinit'
  element.submit
  puts driver.title
  driver.quit
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grid-0.4.3 examples/basic/selenium/selenium.rb
grid-0.4.2 examples/basic/selenium/selenium.rb