Skip to content

toolbar

Mark Humphreys edited this page Jan 29, 2017 · 1 revision
  AutomationToolBar toolbar = applicationWindow.getToolBar(0);
  logger.info("Toolbar name is " + toolbar.name()); // Blank in default WPF

  AutomationButton btn1 = toolbar.getButton(1);

  if (btn1.isEnabled()) {
    logger.info("btn0 Enabled");
    logger.info(btn1.name());
    btn1.click();
  }
Clone this wiki locally