lib/watir/locators/element/selector_builder.rb in watir-6.16.0 vs lib/watir/locators/element/selector_builder.rb in watir-6.16.1
- old
+ new
@@ -124,9 +124,11 @@
else
[how, what]
end
when :caption
# This allows any element to be located with 'caption' instead of 'text'
+ # It is deprecated because caption is a valid attribute on a Table
+ # It is also a valid Element, so it also needs to be removed from the Table attributes list
Watir.logger.deprecate('Locating elements with :caption', ':text locator', ids: [:caption])
[:text, what]
else
check_custom_attribute how
[how, what]