Class: Selenium::SeleniumDriver
- Inherits:
-
Object
- Object
- Selenium::SeleniumDriver
- Defined in:
- lib/spec/ui/selenium/driver_ext.rb
Instance Method Summary collapse
- #click_and_wait(locator, timeout = "5000") ⇒ Object
- #html ⇒ Object
- #kill! ⇒ Object
- #open_and_wait(url, timeout = "5000") ⇒ Object
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 |
#html ⇒ Object
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 |