cancel
Showing results for 
Search instead for 
Did you mean: 

Find methond

SOLVED
Highlighted
Contributor

Find methond

I am tring to use the find method to click on an object. My alias mapping is: Aliases.displayQt.UpgradeDialog.QtObject("QWidget", "", 2).QtObject("LocalNav::CenterButton", "", 1).QtObject("reject_button")

 

QtObject("reject_button") has a property of Name and a value of  QtObject("reject_button")

 

I am trying to do something like: 

Sys.Process("displayQt").find('Name','QtObject("reject_button")').click 

 

However, this is not working and it's saying that the object doesn't exsist. How do I use this function?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: Find methond

I got it to work 

View solution in original post

3 REPLIES 3
Highlighted
Contributor

Re: Find methond

I got it to work 

View solution in original post

Highlighted
Community Hero

Re: Find methond

Quite honestly, I would not use the "Name" property to find the object.  I'd use combination of "ObjectType" and "ObjectIdentifier" or perhaps other sets of properties.  The "Name" property is a construct of TestComplete's object tree.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Community Manager

Re: Find methond

Hi @4m4d3u5,

It's great to hear that the issue was resolved! Could you please post the cause you've found? I think it may be helpful for someone in the future.

 

 

 

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
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

Changing options from outside of TestComplete

Participate!

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

Participate!

Comparing content of HTML table with Excel file data

Participate!

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

Participate!
Top Kudoed Authors