Page 1 of 1

Knockout and Ranorex

Posted: Wed Dec 02, 2020 12:53 am
by donrc$123
I know this is a pretty general question, but has anyone had experience using Ranorex on web pages coded with Knockout? Knockout generally has no id's for web objects and is generally a little harder to identify objects. I was just wondering if anyone has run across any tools or has any tips for working with Knockout in Ranorex.

Re: Knockout and Ranorex

Posted: Fri Dec 04, 2020 10:21 am
by dkmpbrt
Hey,

Can't you just add the id attributes to the elements in the view?

Kr,
Bart

Re: Knockout and Ranorex

Posted: Fri Dec 04, 2020 4:15 pm
by dhale
we use knockout and I usually end up using the "data-" attributes to get me what I need in places where otherwise I'm stuck.

Code: Select all

//input[@type='text' and @data-bind~'value: addFirstName']

Re: Knockout and Ranorex

Posted: Fri Dec 04, 2020 4:39 pm
by donrc$123
Thanks for the replies. I had some issues using the data-bind attribute, but maybe I just need to work with it some more. I appreciate the information.