sap 子元素个数

发布时间 2023-08-25 09:29:13作者: CrossPython

 

def test(session):
    door(session)
    tabs = session.findById("/app/con[0]/ses[0]/wnd[0]/usr/tabsTABSPR1")
    # 类型 GuiTabStrip
    ids = []
    # for i in range(27):
    #     ids.append('/app/con[0]/ses[0]/wnd[0]/usr/tabsTABSPR1/tabpSP')
    a = tabs.FindById(r'/app/con[0]/ses[0]/wnd[0]/usr/tabsTABSPR1')
    print(a.Children.count)