Ask a Question

Unable to perform the action because the button '$49.17 Select' is disabled

SOLVED
mbarbworldtrips
Contributor

Unable to perform the action because the button '$49.17 Select' is disabled

Adding and processing a keyword test. The software provides the ability for the user to change a value that helps calculate the value in the box.

Initial box presented contains $49.17 based on Maximum Coverage of 50,000 and Deductible of 250.

User keeps Maximum Coverage at 50,000 and changes the deductible to 0.

Updated Box now reads $69.30 based on  Maximum Coverage of 50,000 and Deductible of 0.

When in playback mode, I am receiving an error with the message 'Unable to perform the action because the button '$49.17 Select' is disabled'.

What can I do to get the system to recognize the new box amount?

Environment: TestComplete in an RDP session through a corporate VPN. 

 

10 REPLIES 10
Marsha_R
Champion Level 2

You need to find a way to identify the initial box object without having the amount in there.  "$49.17 Select" isn't there any more when you try to look at the updated box so it is failing.

 

If you can show us the object spy contents for the button initially and after you've updated it, then we can help you find another way to look at the object.

Thanks Marsha_R!

This is from inspecting the image in the product. If I need to look for something different than this let me know. I can ask the dev team.

 

Here is before:

mbarbworldtrips_0-1637260453427.png

and after:

mbarbworldtrips_1-1637260645195.png

TestComplete captures it as:

mbarbworldtrips_3-1637260797810.png

 

 

 

Marsh_R - this may be more of what you were looking for...

Before...

mbarbworldtrips_0-1637261770723.png

After...

mbarbworldtrips_1-1637261970210.png

 

 

Is that going to be the only Select button available at this point in the test?

No, there is one more on this screen that pops up after the Coverage and deductible is selected. It is called the upsell popup. In this case, I was selecting - 'Continue with my current selection'.

mbarbworldtrips_0-1637264101073.png

 

Ok, I have an idea, but can you show me the Object Spy again, but this time with the Advanced view?

Advanced view for the 69.30 box:

mbarbworldtrips_0-1637267006107.png

mbarbworldtrips_2-1637267064612.png

mbarbworldtrips_3-1637267115638.png

mbarbworldtrips_4-1637267191680.png

mbarbworldtrips_5-1637267233415.png

mbarbworldtrips_6-1637267269744.png

 

 

 

 

 

 

 

Okay, I think it would be good to change the name mapping for that button to use a wildcard that would match no matter what the amount is

https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html#InNameMapping

 

Then what you can do is use a substring of the contentText field (in the Advanced screen) to look for the amount, whether it's before or after the calculation.  

https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqstring/substring.html

 

Let me know if that works for you.

Sounds reasonable. Not exactly sure how to get the wildcards in there at this point. I'll need to work with the Dev Team to get the name mapping changed on the button. The Dev I need is off today.

cancel
Showing results for 
Search instead for 
Did you mean: