Page 1 of 1

missing Dynamic capabilities in Path Weight editor

Posted: Fri Aug 23, 2013 3:41 pm
by odklizec
Hi all,

Could anyone please tell me, how can I change the Path Weight of Dynamic capabilities (like AccessibleName, AccessibleRole, etc...)? The problem I'm facing is that there seems to be no Dynamic capability in the Path Weight editor?...
Dynamic_1.png
The closest capability containing the accessible attributes is Accessible...
Dynamic_2.png
But this capability seems have no effect on the Dynamic attributes?

And another thing, I noticed that all "Dynamic" options have default weight = 0...
Dynamic_3.png
And because of this, they are not even accessible in the Path Editor (attributes are not used in the path if weight is less than 100). So as of now, my only option how to use the Dynamic accessibility attributes seems to be to add them manually to each path? - EDIT: missing Dynamic attributes in Path Editor are not caused by path weight<100 but by missing refresh, as described in this post: http://www.ranorex.com/forum/missing-at ... t5096.html

I'm using RX 4.1.

Re: missing Dynamic capabilities in Path Weight editor

Posted: Mon Aug 26, 2013 2:35 pm
by odklizec
Hi again,

Just an additional info about my problem. I tried to follow the steps suggested here...
http://www.ranorex.com/forum/reusing-re ... t4020.html
But it seems the "Edit Path Weights" link disappeared from 4.1 Spy GUI? Maybe as a side effect of newly added screenshot section? I think it would be nice to have this link back. Currently, the only option to edit the path weights requires to use Settings dialog, which means few more clicks ;)

In any case, the dynamic capabilities seems to be missing in the Path Weights editor. Any suggestion (even temporary) how to solve my problem?

Re: missing Dynamic capabilities in Path Weight editor

Posted: Tue Aug 27, 2013 2:56 pm
by Support Team
Hello,

Unfortunately the dynamic capability is no longer available.
I made an entry in our bug tracking system and we will discuss internally how to solve this issue.
As workaround you can edit the path weight settings manually in the RanorexConfig.xml which can be found in the %APPDATA% directory.

For example:
...
<rxpathweights>
	<rule
	name="Dynamic Capabilities"
	enabled="True"
	capability="dynamic"
	attribute="accessiblename"
	setweight="150"
	conditionsoperator="or"/>
</rxpathweights>
...
Concerning your second question, you are right, the link for the "Edit Path Weights Editor" was removed in order to get more space for the image.
Thank you!

Regards,
Bernhard

Re: missing Dynamic capabilities in Path Weight editor

Posted: Tue Aug 27, 2013 3:08 pm
by odklizec
Hi Bernhard,

Thank you for the reply and suggestion! I will give it a try.

As for the removed "Path Wight Editor" link, It would be really nice to have it back, because it definitely saved few mouse clicks. Or maybe you could add a new button to spy toolbar? Even a global shortcut to start the Path Weight Editor would be just enough ;)

Re: missing Dynamic capabilities in Path Weight editor

Posted: Tue Aug 27, 2013 4:07 pm
by odklizec
OK, manual editing of RanorexConfig.xml helped. Thanks again for this workaround!

Re: missing Dynamic capabilities in Path Weight editor

Posted: Thu Aug 29, 2013 4:54 pm
by Support Team
Hello,

We will discuss internally if we add the link to Spy again.
Thank you!

regards,
Bernhard