Module: Aranha::Selenium::Session::Select
- Defined in:
- lib/aranha/selenium/session/select.rb
Instance Method Summary collapse
- #select_option(field, value, *find_element_args) ⇒ Object
- #select_option_by_text(text, *find_element_args) ⇒ Object
- #select_option_by_value(value, *find_element_args) ⇒ Object
Instance Method Details
#select_option(field, value, *find_element_args) ⇒ Object
9 10 11 12 13 |
# File 'lib/aranha/selenium/session/select.rb', line 9 def select_option(field, value, *find_element_args) select = find_element(*find_element_args) option = ::Selenium::WebDriver::Support::Select.new(select) option.select_by(field, value) end |
#select_option_by_text(text, *find_element_args) ⇒ Object
15 16 17 |
# File 'lib/aranha/selenium/session/select.rb', line 15 def select_option_by_text(text, *find_element_args) select_option(:text, text, *find_element_args) end |
#select_option_by_value(value, *find_element_args) ⇒ Object
19 20 21 |
# File 'lib/aranha/selenium/session/select.rb', line 19 def select_option_by_value(value, *find_element_args) select_option(:value, value, *find_element_args) end |