lib/watir-webdriver/locators/element_locator.rb in watir-webdriver-0.2.6 vs lib/watir-webdriver/locators/element_locator.rb in watir-webdriver-0.2.7
- old
+ new
@@ -195,10 +195,10 @@
selector
end
def normalize_selector(how, what)
case how
- when :tag_name, :text, :xpath, :index, :class, :for
+ when :tag_name, :text, :xpath, :index, :class, :for, :label
# include :class since the valid attribute is 'class_name'
# include :for since the valid attribute is 'html_for'
[how, what]
when :class_name
[:class, what]