In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to use VBScript scripts to implement traversal of sub-objects in container controls in TestComplete. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
1. Requirements: To select only one specified value in a container control
2. Grab the target container: assign after namemapping
Set DetailProdGroups=Aliases.dbcProductsDetailContainer.DetailProdGroup
The container layout is as follows (checkbox, p_w_picpath, textview, label, etc. on each line):
3. Implementation idea: only grab the container layer, and then obtain the child object according to the child method or item method (different methods of the control are different), and then match the name of the child object in the loop.
4. The code is pasted on:
For i =0 To DetailProdGroups.BandCount-1 'get the name of child controls strProductName=DetailProdGroups.Child(i).ComponentTitle 'set the status of checked all false DetailProdGroups.Child(i).BandCheckbox.Checked=false If productname "" Then 'only select product "productname" If Instr(strProductName,productname)>0 Then DetailProdGroups.Child(i).BandCheckbox.Checked=true End If Else Log.Error("The product name"& productname &" is invalid. ") Exit Sub End If Next Thank you for reading! About "TestComplete how to use VBScript script script to achieve the container control child object traversal" This article is shared here, I hope the above content can be of some help to everyone, so that we can learn more knowledge, if you think the article is good, you can share it to let more people see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.