cancel
Showing results for 
Search instead for 
Did you mean: 

Can default operations for Record Keyword Tests be changed?

SOLVED
Highlighted
Contributor

Can default operations for Record Keyword Tests be changed?

I am recording tests on a web app, and I've noticed TC likes to use the "ClickItem" test action that has a value attached.  It always fails using this method, and the log says "The object with the specified attributes does not exist.".

 

The item I'm trying to access is a button looking image that turns into a drop-down menu, with 3 items in it.  I am able to successfully Name Map all 4 of the objects without a problem, but Test Complete will not use my Name Mapping for the 3 values inside the dropdown, instead it calls ClickItem "value1", etc.   

 

I am able to use the Click(); action on the dropdown values with success if I input the Name Mapping I made for it manually, but the goal here is to have the Record feature detect the drop-down selection so that non-coder can make their own test. 

 

Is there anyway I can exclude TC from using ClickItem action when recording keyword tests and simply have it use the Click action instead?  Or is there another recommendation? I seem to always have issues with Clickitem

 

Thanks!

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Can default operations for Record Keyword Tests be changed?

The short answer is no.  If the object you're clicking is recognized as a drop-down control and the ClickItem action is available, that is what TestComplete will use.


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

Re: Can default operations for Record Keyword Tests be changed?

The short answer is no.  If the object you're clicking is recognized as a drop-down control and the ClickItem action is available, that is what TestComplete will use.


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

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