79132612

Date: 2024-10-28 08:44:21
Score: 1
Natty:
Report link

The problem was that the first node was selected automatically and messed up the code that followed. I bypassed it by deselecting it each time:

If nodeText = "Process Order" Then
    tree.selectNode (nodeKey)
    tree.doubleClickNode (nodeKey)
    tree.unselectNode (nodeKey)
    testExtract = session.findById("wnd[0]/usr/tabsTABSTRIP_5115/tabpKOZE/ssubSUBSCR_5115:SAPLCOKO:5120/ctxtAFPOD-KDPOS").Text
    MsgBox testExtract
End If
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Doublus