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

Charley Baker commented on WTR-325:
-----------------------------------

To the original poster, do you have a patch to submit for this? 

Cheers, 

Charley 

> Frames with xPath access enhancement for element_by_xpath, elements_by_xpath
> ----------------------------------------------------------------------------
>
>                 Key: WTR-325
>                 URL: http://jira.openqa.org/browse/WTR-325
>             Project: Watir
>          Issue Type: New Feature
>          Components: Frame, Xpath Support
>    Affects Versions: 1.6.2
>         Environment: Windows XP, Vista, Server 2008 (all including R2)
> IE 7 and 8
>            Reporter: U Lwin
>            Priority: Major
>
> Watir current release version have limitation with with gathering multiple 
> element information across nested frames.
> For ex.
> ie.elements_by_xpath()                                cannot get access 
> across nested frame.
> ie.frames().divs                                             and
> ie.frames().elements_by_xpath()                  return function not found
> To get by pass that problem I patched frame.rb by adding followings functions 
> from ie-class.rb
> tokenize_tagline()
> xml_escape()
> all_tag_attributes()
> html_source()
> rexml_document_object()
> create_rexml_document_object()
> element_by_xpath()
> element_by_absolute_xpath()
> That solve my problem for accessing access nested frames. Now I can gather 
> links data across nested frames as following..
> left_links = []
> @ie.frame(:name, /CHPDataFrame/i).frame(:name, /LeftPanel/i).frame(:name, 
> /FRAME_ID_ORGANIZER/i).elements_by_xpath("//a...@target='RightPanel']/").each 
> do |lk|
>         left_links << lk.innertext
> end
> recommend to patch in next release

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