lib/watir/elements/select.rb in watir-6.11.0.beta2 vs lib/watir/elements/select.rb in watir-6.11.0
- old
+ new
@@ -204,10 +204,10 @@
return select_matching(found) if found
raise NoValueFoundException, "#{str_or_rx.inspect} not found in select list"
end
def find_options(how, str_or_rx)
- browser.wait_while do
+ wait_while do
case str_or_rx
when String, Numeric, Regexp
@found = how == :value ? options(value: str_or_rx) : []
@found = options(text: str_or_rx) if @found.empty?
@found = options(label: str_or_rx) if @found.empty?