FEST

Add rightClickPath to JTreeFixture

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: FEST-Swing 1.2a3
  • Fix Version/s: FEST-Swing 1.2a4
  • Component/s: Swing
  • Labels:
    None
  • Number of attachments :
    0

Description

I am currently unable to right click on an item in a JTree.
JTreeFixture.rightClick() only can right click on the middle of a JTree, whereas the click and double click can do this by using the JTreeFixture.clickPath(String path). So it would be extremely handy if we would add this for the right click as well.

The only thing we basically need to add is:

JTreeFixture:

public JTreeFixture rightClickPath(String path) { driver.rightClickPath(target, path); return this; }

JTreeDriver:

public void rightClickPath(JTree tree, String path) { Triple<TreePath, Boolean, Point> info = scrollToMatchingPath(tree, path); rightClick(tree, info.iii); }

private void rightClick(JTree tree, Point p) { robot.click(tree, p, RIGHT_BUTTON, 1); }

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: