All Elements should allow String locator, which will be used as an :id
----------------------------------------------------------------------
Key: WTR-436
URL: http://jira.openqa.org/browse/WTR-436
Project: Watir
Issue Type: New Feature
Components: Other
Affects Versions: 2.0
Environment: any
Reporter: Jarmo Pertman
Selenium has a lot of different ways of locating elements. This is
not what i would like to see in
Watir and as i understand then most of you in here also think like
that. But i think that it would
be great if ALL elements would accept one String as an identifier,
which would be used to locate an
element by id. No exceptions - it would be the
same for every element.
For example:
b.text_field("blah").set "my text" # would search text fields with ID and if
not found
# would raise an exception
Most of the time i'm finding myself to use ID to locate
elements, which means that my tests are full of method(:id => 'xxxx').
Would be great if there would be less code.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development