org.uispec4j.interception
Class PopupMenuInterceptor
java.lang.Object
org.uispec4j.interception.PopupMenuInterceptor
public class PopupMenuInterceptor
- extends java.lang.Object
Interceptor for (usually right-click triggered) pop-up menus.
For instance, in the following code snippedt we right-click in the (2,4) cell of a table,
then click on the "Copy" item found in the popped-up menu:
PopupMenuInterceptor
.run(table.triggerRightClick(2, 4))
.getSubMenu("Copy")
.click();
- See Also:
- Intercepting windows
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PopupMenuInterceptor
public PopupMenuInterceptor()
run
public static MenuItem run(Trigger trigger)
- Runs the given trigger and returns the intercepted popup menu.
This method will wait for the popup to be shown, up to a time specified with
UISpec4J.setWindowInterceptionTimeLimit(long).
- Throws:
java.lang.Error - if no popup is shown before the timeout expires.
Copyright © 2004-2010. All Rights Reserved.