Alessandro Da Rugna
Alessandro Da Rugna

Reputation: 4695

How to programmatically get object recognition score in RFT 8.1.0?

In RFT 8.1.0, is there a way to know the recognition score of an object programmatically?

Sometimes when performing an action like html_button().click() you get a warning that the object isn't perfectly recognized, but the action gets done correctly.

I would like to "order" some GuiTestObjects by their recognition score while the script is running, and perform the click action on the most relevant one (the one with the lower score).

Upvotes: 2

Views: 716

Answers (1)

Prakash
Prakash

Reputation: 752

If you open Object Map and select "Update Recognition Property" by slec then it would show you the wizard that would show what properties match against what do not match. Also the scoring not only takes into account recognition properties ofhe current object but rather a commulative recognition score of parent ojects as well.

Upvotes: 1

Related Questions