Element capability is 99.9 % inputtag then randomly fails with does not support required capability 'inputtag'

Ranorex Studio, Spy, Recorder, and Driver.
qa-auto
Posts: 86
Joined: Mon Aug 05, 2019 10:46 pm

Element capability is 99.9 % inputtag then randomly fails with does not support required capability 'inputtag'

Post by qa-auto » Wed Aug 12, 2020 5:07 pm

Hi,

I have a script action that has passed more than a 100 times in test runs....

GetValue TagValue $myVar element:TxtROTotalFromCustomer

Suddenly, run it a few minutes ago with zero changes and the action fails with:

Item 'VergentMasterRepository.Base.LoansPage.DivBlock.LoanActionsPanel.MakeAPaymentAction.TxtROTotalFromCustomer' is no InputTag.
The element does not support the required capability 'inputtag'.

-----------------------------------------------------------------
Same browser version, same Ranorex versions.....makes no sense.

Attachments:
- Snapshot of form before any values are entered
- Snapshot of form AFTER values are entered
- shows how the "Total From Customer:" input field auto-populates with the Tender Amount value
- Logs - success and failures
- Screenshots
- script action line and element with Xpath
- element in Spy with Advanced tab values

This is very frustrating - you think your test is stable and reliable, then it fails out of the blue. Wasted an hour on this...

Ideas?

(I also entered a support case.)

Thanks for your help.
Lorinda
You do not have the required permissions to view the files attached to this post.

qa-auto
Posts: 86
Joined: Mon Aug 05, 2019 10:46 pm

Re: Element capability is 99.9 % inputtag then randomly fails with does not support required capability 'inputtag'

Post by qa-auto » Wed Aug 12, 2020 5:09 pm

Additional screenshots
You do not have the required permissions to view the files attached to this post.

TimoL
Posts: 46
Joined: Thu Sep 13, 2018 3:08 pm

Re: Element capability is 99.9 % inputtag then randomly fails with does not support required capability 'inputtag'

Post by TimoL » Thu Nov 04, 2021 7:28 am

Seems that this bug still exists in Ranorex. I changed the tag name as proposed here like this: input -> inputtag. But it didn't help - the test failed still randomly every now and then.

But when I simplified the xpath: spantag[xxx]/../..//inputtag[yyy] -> inputtag[yyy], then it didn't fail anymore. In this case it was possible to leave the title of the input field away from the path, because there was just one input in that page.