Class: Selenium::WebDriver::Element
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Element
- Defined in:
- lib/selenium/webdriver/common/element_browsery.rb
Instance Method Summary collapse
-
#browser_safe_checkbox_click ⇒ Object
Click in a way that is reliable for IE and Firefox and works for other browsers as well.
-
#browser_safe_click ⇒ Object
Click in a way that is reliable for IE and works for other browsers as well.
Instance Method Details
#browser_safe_checkbox_click ⇒ Object
Click in a way that is reliable for IE and Firefox and works for other browsers as well
14 15 16 |
# File 'lib/selenium/webdriver/common/element_browsery.rb', line 14 def browser_safe_checkbox_click (bridge.browser == :internet_explorer || bridge.browser == :firefox) ? send_keys(:space) : click end |
#browser_safe_click ⇒ Object
Click in a way that is reliable for IE and works for other browsers as well
9 10 11 |
# File 'lib/selenium/webdriver/common/element_browsery.rb', line 9 def browser_safe_click bridge.browser == :internet_explorer ? send_keys(:enter) : click end |