PropertyValue[] noArgs = new PropertyValue[0];
getting.dispatch(url[0], noArgs);
shortWait();
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
// obtaining 'Close' button
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
"Close");
action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, oObj);
// Selecting 'New Document' tab
try {
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TREE);
XAccessibleSelection xAccSel = (XAccessibleSelection) UnoRuntime.queryInterface(
XAccessibleSelection.class,
oObj);
xAccSel.selectAccessibleChild(3);
shortWait();
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
throw new StatusException("Can't switch to required tab", e);
}
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "",
"com.sun.star.comp.toolkit.AccessibleListBox");
Object list = at.getAccessibleObjectForRole(at.SearchedAccessible,
AccessibleRole.LIST);
log.println("ImplementationName " + utils.getImplName(oObj));
TestEnvironment tEnv = new TestEnvironment(oObj);