[
http://jira.openqa.org/browse/WTR-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19634#action_19634
]
Jari Bakken commented on WTR-436:
---------------------------------
I agree with Bret that this isn't worth the trouble. I'm not sure how much use
the single argument variant has seen up to know, since it's not well documented
and hard to understand. The alternatives boil down to:
1. deprecate the single argument API entirely
2. make the behavior consistent across elements, only locating by id
3. leave it as is
I prefer #1, that's also how it's implemented in watir-webdriver at the moment.
> 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