Module: RegressyCommon::Selector

Defined in:
lib/regressy_common/selector.rb

Instance Method Summary collapse

Instance Method Details

#select_option_by_text(how, what, content) ⇒ Object



3
4
5
6
# File 'lib/regressy_common/selector.rb', line 3

def select_option_by_text (how, what, content)
  element = @driver.find_element(how, what)
  Selenium::WebDriver::Support::Select.new(element).select_by(:text, content)
end