Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Selecting tree items more easily by using something like XPATH
Selecting tree items more easily by using something like XPATH [message #25779] Wed, 04 March 2009 09:40
Hans Schwaebli is currently offline Hans Schwaebli
Messages: 70
Registered: July 2009
Member
I discovered that a SWT tree might contain duplicate entries with the same
name, for example:

root
-book
-title
-book
-title

Its a kind of hierarchical like in a XML document. In order to select a
certain node, or several ones, you need something like XPATH.

A difference between XML and a tree might be that the tree has to be
expanded (I think) in order to access its children items.

Maybe it is not top priority, but what do you think about having XPATH
capabilities for selecting a tree item?

An example could be:
tree.select("/doc/chapter[1]");
Previous Topic:Clicking a link insider an editor
Next Topic:Porblems with org.eclipse.swtbot.ui
Goto Forum:
  


Current Time: Thu Oct 30 16:42:01 GMT 2014

Powered by FUDForum. Page generated in 0.01771 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software