Bug 469275 - Find Element By Path
Summary: Find Element By Path
Status: UNCONFIRMED
Alias: None
Product: XWT
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 8
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Yves YANG CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-03 09:08 EDT by El-Amine Ouraiba CLA
Modified: 2015-06-03 09:10 EDT (History)
1 user (show)

See Also:


Attachments
Patch of finding element by path. (3.29 KB, patch)
2015-06-03 09:09 EDT, El-Amine Ouraiba CLA
no flags Details | Diff
TestCase of finding element by path. (24.92 KB, application/octet-stream)
2015-06-03 09:10 EDT, El-Amine Ouraiba CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description El-Amine Ouraiba CLA 2015-06-03 09:08:52 EDT
Using "findChildrenByName(context, name)", several children can be found with this name.
The need hier is how to find every element alone by its unique path. 

Path specify the element's emplacement vis-a-vis a context.  

A method is implemented for this :   
"Object findElementByPath(Object context, String path)"

NB : a proposed patch and testCase are attached.
Comment 1 El-Amine Ouraiba CLA 2015-06-03 09:09:32 EDT
Created attachment 254071 [details]
Patch of finding element by path.
Comment 2 El-Amine Ouraiba CLA 2015-06-03 09:10:32 EDT
Created attachment 254072 [details]
TestCase of finding element by path.