Skip to Content
0

how to automate gui scripting to select last node from sap gui tree

Oct 20, 2017 at 05:14 PM

147

avatar image
Former Member

Hello Guys,

I am trying to automate one process in SAP(GUI scripting). In that my requirement is to select the final node always. There will be a chance of 2 to 7 nodes maximum..Sometimes the final node will be in 3rd line or 5 or 7th.(will be 2nd to 7th). Kindly help in doing that.

sample code

session.findById("wnd[0]").maximize session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[1]/shell").expandNode "000001" session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[1]/shell").expandNode "000002" session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[1]/shell").selectedNode = "000003" session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[1]/shell").topNode = "000001" session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[1]/shell").expandNode "000003" session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[1]/shell").selectedNode = "000005" session.findById("wnd[0]/shellcont/shellcont/shell/shellcont[0]/shell/shellcont[1]/shell").topNode = "000001"

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers