/// <summary> /// method to apply when a non-terminal node has been found /// </summary> /// <param name="ah"></param> public void visitNode(AccessibilityHelper ah) { // does this ah need to be clicked or something to get to its children? if (1 == m_logLevel) m_log.paragraph(makeNameTag() + "Click found "" + ah.Role + ":" + ah.Name + """); if ((ah.Role == AccessibleRole.MenuItem) || (m_for != null && "all" == (string)m_for)) { if (1 == m_logLevel) m_log.paragraph(makeNameTag() + "Click determining what to do with this intermediate step"); bool isFocused = (ah.States & AccessibleStates.Focused) == AccessibleStates.Focused; if (!isFocused) { if (1 == m_logLevel) m_log.paragraph(makeNameTag() + "Clicking relative to "" + ah.Role + ":" + ah.Name + "" by (" + m_dx + ", " + m_dy + ") since it does not have focus"); ah.SimulateClickRelative(m_dx, m_dy); } else { if (1 == m_logLevel) m_log.paragraph(makeNameTag() + "Click hovering on "" + ah.Role + ":" + ah.Name + "" since it has focus"); ah.MoveMouseOverMe(); // hover } } }
/// <summary> /// method to apply when a non-terminal node has been found /// </summary> /// <param name="ah"></param> public void visitNode(AccessibilityHelper ah) { // does this ah need to be clicked or something to get to its children? ah.MoveMouseOverMe(); // hover if (1 == m_logLevel) m_log.paragraph("HoverOver hovering over "" + ah.Role + ":" + ah.Name + """); }