[ http://jira.openqa.org/browse/WTR-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19978#action_19978 ]
Bret Pettichord commented on WTR-343: ------------------------------------- Like it or not, element_by_xpath has been part of the Watir API for a long time and is well known and used by many people. So it should be documented as such. I'm not opposed to eventually deprecating it some day in favor of a more consistent API, but first we need to 1. Develop and release a more consistent API 2. Publicize and document the new API 3. Let people know the old API will be deprecated 4. Release a version that gives a warning when the old API is used. Regardless, this should be tracked as a separate ticket. Please create one on this topic if you would like to pursue this further. > watirspec: element_by_xpath should return Watir::Element objects > ---------------------------------------------------------------- > > Key: WTR-343 > URL: http://jira.openqa.org/browse/WTR-343 > Project: Watir > Issue Type: Sub-task > Components: HTML Controls > Affects Versions: 1.6.2 > Environment: Watir::IE on WinXP > Reporter: Jari Bakken > Priority: Major > Fix For: Soon > > > 5) > WIN32OLERuntimeError in 'Browser#element_by_xpath finds submit buttons > matching the given xpath' > unknown property or method `exist?' > HRESULT error code:0x80020006 > Unknown name. > ./spec/watirspec/browser_spec.rb:201: > 6) > WIN32OLERuntimeError in 'Browser#element_by_xpath finds reset buttons > matching the given xpath' > unknown property or method `exist?' > HRESULT error code:0x80020006 > Unknown name. > ./spec/watirspec/browser_spec.rb:205: > 7) > WIN32OLERuntimeError in 'Browser#element_by_xpath finds image buttons > matching the given xpath' > unknown property or method `exist?' > HRESULT error code:0x80020006 > Unknown name. > ./spec/watirspec/browser_spec.rb:209: > 8) > WIN32OLERuntimeError in 'Browser#element_by_xpath finds the element matching > the given xpath' > unknown property or method `exist?' > HRESULT error code:0x80020006 > Unknown name. > ./spec/watirspec/browser_spec.rb:213: -- 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 Wtr-development@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-development