Class: Selenium::WebDriver::Driver
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Driver
- Defined in:
- lib/angular_webdriver/protractor/webdriver_patch.rb
Instance Method Summary collapse
- #bridge ⇒ Object
-
#max_page_wait_seconds ⇒ Numeric
Gets the wait time in seconds used when loading pages with protractor.get.
-
#max_wait_seconds ⇒ Object
Returns the wait time in seconds used when locating elements and waiting for angular to load.
- #protractor ⇒ Object
- #protractor=(protractor_object) ⇒ Object
-
#set_max_page_wait(value) ⇒ Numeric
Sets the wait time in seconds used when loading pages with protractor.get.
-
#set_max_wait(value) ⇒ Numeric
Sets the wait time in seconds used when locating elements and waiting for angular towww.youtube.com/watch?v=o9c3U5_8tGY load.
Instance Method Details
#bridge ⇒ Object
19 20 21 |
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 19 def bridge @bridge end |
#max_page_wait_seconds ⇒ Numeric
Gets the wait time in seconds used when loading pages with protractor.get
Defaults to 30 seconds
57 58 59 |
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 57 def max_page_wait_seconds @max_page_wait || 30 end |
#max_wait_seconds ⇒ Object
Returns the wait time in seconds used when locating elements and waiting for angular to load.
39 40 41 |
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 39 def max_wait_seconds @bridge.max_wait_seconds || 0 end |
#protractor ⇒ Object
11 12 13 |
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 11 def protractor @bridge.protractor end |
#protractor=(protractor_object) ⇒ Object
15 16 17 |
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 15 def protractor= protractor_object @bridge.protractor = protractor_object end |
#set_max_page_wait(value) ⇒ Numeric
Sets the wait time in seconds used when loading pages with protractor.get
48 49 50 |
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 48 def set_max_page_wait value @max_page_wait = value end |
#set_max_wait(value) ⇒ Numeric
Sets the wait time in seconds used when locating elements and waiting for angular towww.youtube.com/watch?v=o9c3U5_8tGY load.
31 32 33 |
# File 'lib/angular_webdriver/protractor/webdriver_patch.rb', line 31 def set_max_wait value @bridge.set_max_wait value end |