cancel
Showing results for 
Search instead for 
Did you mean: 

returning TestComplete user understanding object recognition in web app looking at a <form> tag

SOLVED
Highlighted
Super Contributor

returning TestComplete user understanding object recognition in web app looking at a <form> tag

I have not used TestComplete in a few years, returning after some work with Selenium and Ranorex. I used Test Complete with a desktop application for a few years, but now am entering Test Complete with web. I need to get out of xpathy mindset. Smiley Happy

 

I am looking at a form tag on my page which has an id of "LOGINSTART_9fa8e150-5ba9-699a-4414-5320689d07d2" as I see in in the browser developer tools. The object was identified by Test Complete with ObjectType = form. When I edit it in Name Mapping, id is not one of the options, but idStr is. I could use that property. But I dont see a sstarts with operator or how to use regex or anything to use part of a value rather than the whole value.

 

So basically, I am looking for an understanding of object recognition in the web space in general where object identifiers are vague and/or dynamic with this example to start. Do anyone have a reference in the excellent but voluminous documentation I should start with and/or what you would do with this form object? 

 

Thanks

 

Stephanie

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: returning TestComplete user understanding object recognition in web app looking at a <form&gt

Within the value field for the object in NameMapping, regex isn't available.  However, you can use the * symbol to wild-card dynamic pieces.

 

The way the engine works, is that it works on a tree structure first and then properties next.  


Robert Martin
[Community Expert Group]
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
Community Hero

Re: returning TestComplete user understanding object recognition in web app looking at a <form&gt

Within the value field for the object in NameMapping, regex isn't available.  However, you can use the * symbol to wild-card dynamic pieces.

 

The way the engine works, is that it works on a tree structure first and then properties next.  


Robert Martin
[Community Expert Group]
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