Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

TreeItemLocator can't deal with multiple items that have the same name #21

Closed
GoogleCodeExporter opened this issue May 4, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

TreeItemLocator can't deal with multiple items that have the same name. Same 
for TreeCellLocator which depends on TreeItemLocator.
ui.click(new 
TreeItemLocator("GSServerApplication/Assembly/Resources/MSFTranslators/MSFTransl
ator/JVMParameter",2,new SWTWidgetLocator(Tree.class, new 
SWTWidgetLocator(CTabFolder.class))));
Steps to reproduce-
If the Tree Contains the Tree Items with the same name, Tree Items Locator is 
not able to Identify them. 
For Example i want to click on the 2nd JVMParameter value 
  <JVMParameter>-client</JVMParameter>  
          <JVMParameter>-d64</JVMParameter>  
          <JVMParameter>-Xmx192m</JVMParameter>    

Exception:
com.windowtester.runtime.MultipleWidgetsFoundException: Multiple tree items 
found for 'JVMParameter' in 
name
JVMParameter
JVMParameter
JVMParameter
    at com.windowtester.runtime.swt.internal.drivers.TreeDriver.getNextTreeItem(TreeDriver.java:143)

What is the expected output? What do you see instead?
TreeItemLocator should be able to locate the Items by Index.

What version of the product are you using? On what operating system?
Windows 7, Eclipse Helios, 3.5

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 22 Feb 2013 at 4:47

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 6 Mar 2013 at 1:07

  • Changed state: Duplicate

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant