Ask a Question

Click Method Freezing TestComplete

SOLVED
kman1523
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 REPLY 1
tristaanogre
Esteemed Contributor

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
cancel
Showing results for 
Search instead for 
Did you mean: