cancel
Showing results for 
Search instead for 
Did you mean: 

Click Method Freezing TestComplete

SOLVED
New Contributor

Click Method Freezing TestComplete

In a project that has quite a few extended find objects in it, TestComplete it hanging when interacting with WebObjects that are not mapped. For example, if we find a input using a QuerySelector, the object is found alomost instantaneously. As soon as we try and click it, TestComplete freezes until the browser page is closed. I've tried:

 

  1. 1. Using the FullName of the object and retrieving it before clicking.
  2. 2. Using the AddNamedChild method and building the entire mapping tree to the object, then using the returned mapped object to interact. Freezing still ocurrs.

The same freezing occurs if I run RefreshMappingInfo . Why is TestComplete trying to map the object when I already have a refernce to it and just want it to click? If there a way to temporarily disable this behavior within a script?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Extended Find, while useful, if overused makes it seem that TestComplete is "freezing".  Extended find has to search the tree from parent to child down until the object is found.  This is why, while I use Extended Find for some things, I have it off by default and prefer to map all the objects in between and use Aliases to shrink the path.

 

One thing I have also experienced is that, when performing a "click", there is some feedback that TestComplete is waiting for to detremine if the click is successful.  And if Extended Find is on, that feedback gets lost in the search for the object.

 

So...  two things to do:

 

1) reduce your use of extended find in your object trees and do more direct mapping

2) Turn off the "search for visible objects" in the NameMapping engine configuration.

 

These two things will speed up the searching process when looking for the object to interact with.


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

View solution in original post

1 REPLY 1
Highlighted
Community Hero

Extended Find, while useful, if overused makes it seem that TestComplete is "freezing".  Extended find has to search the tree from parent to child down until the object is found.  This is why, while I use Extended Find for some things, I have it off by default and prefer to map all the objects in between and use Aliases to shrink the path.

 

One thing I have also experienced is that, when performing a "click", there is some feedback that TestComplete is waiting for to detremine if the click is successful.  And if Extended Find is on, that feedback gets lost in the search for the object.

 

So...  two things to do:

 

1) reduce your use of extended find in your object trees and do more direct mapping

2) Turn off the "search for visible objects" in the NameMapping engine configuration.

 

These two things will speed up the searching process when looking for the object to interact with.


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

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

Participate!

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