Set oFile = FSO.CreateTextFile("Test.json", True) JSONTree = session.GetObjectTree("wnd", arrayOfProps) "ScreenLeft", "ScreenTop", "Left", "Top", "Height", "Width", _ … delivers all IDs of the elements from window 0 of the session.īut it is also possible to add the properties of the elements you are interested in, here an example: arrayOfProps = Array("Id", "Text", "Type", "Name", _ Set oFile = FSO.CreateTextFile("Test.json",True) Set FSO = CreateObject("Scripting.FileSystemObject") It delivers all requested attributes of the elements of the given ID as JSON (JavaScript Object Notation) object.Ī simple call of … JSONTree = session.GetObjectTree("wnd") The method is domiciled in the GuiSession object. With this new version offers the SAP GUI Scripting API a great new method called GetObjectTree. The patch level 3 of SAP GUI for Windows 7.70 has been available since six days.
0 Comments
Leave a Reply. |