def test(session): door(session) tabs = session.findById("/app/con[0]/ses[0]/wnd[0]/usr/tabsTABSPR1") a = tabs.FindById(r'/app/con[0]/ses[0]/wnd[0]/usr/tabsTABSPR1') for i in range(a.Children.count): tmp = a.Children.Item(i) try: print('text', tmp.Text) except: pass try: print('children count', tmp.Children.count) except: pass print('------------------')
标签:tmp,count,ses,元素,个数,session,print,sap,Children From: https://www.cnblogs.com/pythonClub/p/17656030.html