Wednesday, 15 August 2012

eclipse rcp - How to Click on a Tree Item in a Cell using windowTester? -



eclipse rcp - How to Click on a Tree Item in a Cell using windowTester? -

i have shell in there tree within composite. want click on particular cell of tree. when seek record actions, not giving proper recordings, want manually.

please see snapshot attached , location want click example.

this error coming after recording

warning: unsupported widget selection ignored - widget selection event: null

please help me not eclipse , it's kind of of import our project. lot.

you can manually in test code writing:

// first click on item ensure visible in scrolled view treeitemlocator itemlocator = new treeitemlocator("/tree/path/to/file"); getui().click(itemlocator); // can access tree cell (columns zero-based treeitemlocator celllocator = swtlocators.treecell(itemlocator.getpath())).at(swtlocators.column(4); getui().click(celllocator);

of course, import static com.windowtester.runtime.swt.locator.swtlocators.* create code more readable.

eclipse-rcp window-tester

No comments:

Post a Comment