[
http://jira.openqa.org/browse/WTR-433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19601#action_19601
]
Ethan commented on WTR-433:
---------------------------
This is correct behavior. The #text method returns all of the text contents of
an element. Visibility is not considered.
A useful enhancement to Watir would be a new method, #visible_text, which would
return what text is visible. This would require recursing down the DOM and
collecting textNodes only under elements which are visible. I'd recommend
adding an enhancement ticket for this if it is needed.
> IE#text.include? method returning true for hidden text also
> -----------------------------------------------------------
>
> Key: WTR-433
> URL: http://jira.openqa.org/browse/WTR-433
> Project: Watir
> Issue Type: Bug
> Components: HTML Controls
> Affects Versions: 1.5.6
> Environment: windows xp
> Reporter: shanth
> Priority: Major
>
> IE#text.include? method returning true for hidden text also
--
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