Method: Selenium::WebDriver::Driver#gettagid
- Defined in:
- lib/oats/oats_selenium_api.rb
#gettagid(locator, select_tag = 'option', attribute = 'text') ⇒ Object
214 215 216 217 218 219 |
# File 'lib/oats/oats_selenium_api.rb', line 214 def gettagid(locator, select_tag = 'option', attribute = 'text') oats_debug "Store #{locator} ids by tag_name #{select_tag}" el = element?(locator) raise OatsTestError, "Could not find #{locator} among options:" if !el el.find_elements(:tag_name,select_tag).collect { |opt| opt.attribute(attribute)} end |