~~~
if tag_name == "input"
klass = case elem.attribute(:type)
when *Button::VALID_TYPES
Button
when 'checkbox'
CheckBox
when 'radio'
Radio
when 'file'
FileField
else
TextField
end
else
klass = Watir.element_class_for(tag_name)
end
~~~
:+1: It's clear now.
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/203#issuecomment-16701868
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development