xRoot = at.getAccessibleObject(xWindow);
//at.printAccessibleTree(new PrintWriter(System.out),xRoot);
XAccessibleAction action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class,
at.getAccessibleObjectForRole(xRoot,
AccessibleRole.PUSH_BUTTON,
bName));
try {
action.doAccessibleAction(0);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
}
shortWait();
atw = tk.getActiveTopWindow();
xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, atw);
xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(new PrintWriter(System.out),xRoot);
action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class,
at.getAccessibleObjectForRole(xRoot,
AccessibleRole.PUSH_BUTTON,
"Yes"));
try {
if (action != null) action.doAccessibleAction(0);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
}
shortWait();