public class PopupMenuInterceptor extends Object
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();
Constructor and Description |
---|
PopupMenuInterceptor() |
Modifier and Type | Method and Description |
---|---|
static MenuItem |
run(Trigger trigger)
Runs the given trigger and returns the intercepted popup menu.
|
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 withUISpec4J.setWindowInterceptionTimeLimit(long)
.Error
- if no popup is shown before the timeout expires.Copyright © 2004–2016. All rights reserved.