(XMultiServiceFactory) Param.getMSF());
psDiag.start();
util.utils.shortWait(Param.getInt("ShortWait"));
AccessibilityTools at = new AccessibilityTools();
util.utils.shortWait(Param.getInt("ShortWait"));
Object atw = tk.getActiveTopWindow();
XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
atw);
XAccessible xRoot = at.getAccessibleObject(xWindow);
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
"Cancel");
action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, oObj);
oObj = at.getAccessibleObjectForRole(xRoot,
AccessibleRole.PAGE_TAB_LIST);
XAccessibleSelection xAccSel = (XAccessibleSelection) UnoRuntime.queryInterface(
XAccessibleSelection.class,
oObj);
try {
xAccSel.selectAccessibleChild(0);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace(log);
}
util.utils.shortWait(Param.getInt("ShortWait"));
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "",
"AccessibleComboBox");
log.println("ImplementationName " + utils.getImplName(oObj));
TestEnvironment tEnv = new TestEnvironment(oObj);