Control exists

Element that searches for a control element. The component works correctly only inside the SAP container.

Properties

- Element ID: [String] ID of an element

- Element: [LTools.SAP.Model.SAPUIItem] Variable to store control reference

- Result: [Boolean] Variable that stores search results

- Timeout*: [Int32] Maximum waiting time for process completion (ms)

C#
LTools.SAP.SapApp app = LTools.SAP.SapApp.Init(wf);
LTools.SAP.Model.SAPUIItem item = app.ElementExists("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell");

Python
app = LTools.SAP.SapApp.Init(wf)
item = app.ElementExists("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell")

JavaScript
var app = _lib.LTools.SAP.SapApp.Init(wf);
item = app.ElementExists("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell");

Last updated