Sha256: f142354bb5ac41276acc311f5a0891b0766dad367d995f5cdf5e5038b8721182

Contents?: true

Size: 298 Bytes

Versions: 7

Compression:

Stored size: 298 Bytes

Contents

require 'selenium-webdriver'

def buscar_en_google palabra
  @browser = Selenium::WebDriver.for :firefox
  @browser.get "http://google.com"
  campo_de_busqueda = @browser.find_element(:id, "q")
  campo_de_busqueda.send_keys("#{palabra}\n")
end

buscar_en_google "curso de automatizacion de pruebas"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kaya-0.0.10 lib/kaya/support/ricardo.rb
kaya-0.0.9 lib/kaya/support/ricardo.rb
kaya-0.0.8 lib/kaya/support/ricardo.rb
kaya-0.0.7 lib/kaya/support/ricardo.rb
kaya-0.0.6 lib/kaya/support/ricardo.rb
kaya-0.0.5 lib/kaya/support/ricardo.rb
kaya-0.0.4 lib/kaya/support/ricardo.rb