[ 
http://jira.openqa.org/browse/WTR-500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20410#action_20410
 ] 

Jarmo Pertman commented on WTR-500:
-----------------------------------

Element type was ignored regardless of the locator used prior Watir 3.0.rc1. 
Try it out with `gem install watir --pre`. Check out the full changelog at 
https://github.com/watir/watir/blob/master/CHANGES

Let us know if the problem persists or not.

> Locating element by ID ignores the type of element
> --------------------------------------------------
>
>                 Key: WTR-500
>                 URL: http://jira.openqa.org/browse/WTR-500
>             Project: Watir
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0
>         Environment: Windows 7 64-bit, IE 8, ruby 1.8.7, watir2.0.4
>            Reporter: Aliaksandr
>            Priority: Major
>         Attachments: ignored_element_type.htm
>
>
> When searching for a specific element type and using :id locator - element 
> type seems to be actually ignored. By judging the symptom, it seems that at 
> the end, call to locate an element is transfered to Element class.
> Code executed against attached html:
> irb(main):040:0> t=ie.div(:id,"id_adACOL1").exists?
> => true
> irb(main):041:0> t=ie.li(:id,"id_adACOL1").exists?
> => true
> irb(main):042:0> t=ie.text_field(:id,"id_adACOL1").exists?
> => true
> irb(main):043:0> t=ie.text_field(:id,"id_adACOL1").html
> => "\r\n<DIV style=\"MARGIN: auto\" id=id_adACOL1 align=center name=\"foo\">
> e--></DIV>"
> irb(main):044:0> t=ie.div(:name,"foo").exists?
> => true
> irb(main):045:0> t=ie.li(:name,"foo").exists?
> => false

-- 
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

Reply via email to