cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I have several questions

1. Is it possible to not traverse object tree each time i want to access specific field?

So far i use Object.children.item() and so on. But it seems that anyway SAP traverse all the elements.

I thought it would be more performant but after profiling it seems not.

How to avoid that? Keep some kind of cache to access elements directly

2. Some GUI events doesn’t work: Hit, Error.

I catch them from Session object (Session_Hit, etc).

CreateSession and DestroySession works just fine.

The idea is same as built-in recorder: listen to user events and record script but with different payload (trying to avoid continuous session.FindById... and make element names human-readable).

Thank you in advance!

0 Likes
View Entire Topic
Sandra_Rossi
Active Contributor

In SAP GUI for Windows, there is the Recorder in the System menu, which records your input and generate a VBScript.

It generates this kind of lines:

set field = FindById( "/app/con[0]/ses[0]/wnd[0]/usr/lblRS38M-PROGRAMM" )
former_member237609
Participant
0 Likes

Thanks!

I do understand it. But question is as in subject how to not traverse object model as it happens with finbyid function.