Class: SafeDb::Visit

Inherits:
Controller show all
Defined in:
lib/controller/visit/visit.rb

Instance Method Summary collapse

Methods inherited from Controller

#check_post_conditions, #check_pre_conditions, #flow, #initialize, #open_remote_backend_location, #post_validation, #pre_validation, #read_verse, #set_verse, #update_verse

Constructor Details

This class inherits a constructor from SafeDb::Controller

Instance Method Details

#executeObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/controller/visit/visit.rb', line 7

def execute

  require "watir" 
  require "rspec/expectations" 

  ## see README.md for documentation on installing geckodriver

  @browser ||= Watir::Browser.new :firefox 
  @browser.goto "google.com" 
  @browser.text_field(:name => "q").set "apollo akora"
  @browser.button.click 

  @browser.div(:id => "resultStats").wait_until(&:present?)
  sleep 20
  @browser.close

end