Class: Selenium::SeleniumDriver

Inherits:
Object
  • Object
show all
Defined in:
lib/spec/ui/selenium/driver_ext.rb

Instance Method Summary collapse

Instance Method Details

#click_and_wait(locator, timeout = "5000") ⇒ Object



3
4
5
6
# File 'lib/spec/ui/selenium/driver_ext.rb', line 3

def click_and_wait(locator, timeout="5000")
  click(locator)
  wait_for_page_to_load(timeout)
end

#htmlObject



13
14
15
# File 'lib/spec/ui/selenium/driver_ext.rb', line 13

def html
  get_html_source
end

#kill!Object



17
18
19
# File 'lib/spec/ui/selenium/driver_ext.rb', line 17

def kill!
  stop
end

#open_and_wait(url, timeout = "5000") ⇒ Object



8
9
10
11
# File 'lib/spec/ui/selenium/driver_ext.rb', line 8

def open_and_wait(url, timeout="5000")
  open(url)
  wait_for_page_to_load(timeout)
end