Method: Sapphire::WebAbstractions::RubySeleniumWebDriver#FindItemWithoutWait
- Defined in:
- lib/sapphire/Adapters/Selenium/RubySeleniumWebDriver.rb
#FindItemWithoutWait(array, comparator = nil) ⇒ Object
232 233 234 235 236 237 238 239 240 |
# File 'lib/sapphire/Adapters/Selenium/RubySeleniumWebDriver.rb', line 232 def FindItemWithoutWait(array, comparator=nil) element, by, value = FindItem(array, comparator) return element, by, value if element != nil return element, by, value if comparator.Compare(element != nil, true) if comparator != nil raise "Could not find control for array: " + array.to_s end |