cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle dynamic objects in TestComplete?

SOLVED
Highlighted
Occasional Contributor

How to handle dynamic objects in TestComplete?

Hi,

 In my .NET application the name of a grid object is dynamic. I want to print the object's value. How can I automate it?



Thanks,

Rajib
1 ACCEPTED SOLUTION

Accepted Solutions
Super Contributor

Hi Rajib,


Below, are several approaches that you can use in this case:


1. Use wildcards inside the target grid name. For instance, if your grid may have the following names: Grid1, Grid2, and so on, you can use the following mask for the window name - Grid*.


For more information, please refer to the Using Wildcards help topic.


2. Use the Find method to find the target window not by this name, but by the values of its properties.


3. Use wildcards in your name mapping scheme to map the window with the dynamic name. For more information, please refer to the Using Wildcards in Name Mapping help topic.

I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.

View solution in original post

1 REPLY 1
Super Contributor

Hi Rajib,


Below, are several approaches that you can use in this case:


1. Use wildcards inside the target grid name. For instance, if your grid may have the following names: Grid1, Grid2, and so on, you can use the following mask for the window name - Grid*.


For more information, please refer to the Using Wildcards help topic.


2. Use the Find method to find the target window not by this name, but by the values of its properties.


3. Use wildcards in your name mapping scheme to map the window with the dynamic name. For more information, please refer to the Using Wildcards in Name Mapping help topic.

I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors