Knockout and Ranorex

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
donrc$123
Posts: 3
Joined: Thu Aug 15, 2019 4:56 pm

Knockout and Ranorex

Post by donrc$123 » Wed Dec 02, 2020 12:53 am

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.

dkmpbrt
Posts: 31
Joined: Thu Jan 25, 2018 9:00 am
Location: Antwerp
Contact:

Re: Knockout and Ranorex

Post by dkmpbrt » Fri Dec 04, 2020 10:21 am

Hey,

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

Kr,
Bart

dhale
Posts: 49
Joined: Thu Feb 27, 2014 7:33 pm

Re: Knockout and Ranorex

Post by dhale » Fri Dec 04, 2020 4:15 pm

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']

donrc$123
Posts: 3
Joined: Thu Aug 15, 2019 4:56 pm

Re: Knockout and Ranorex

Post by donrc$123 » Fri Dec 04, 2020 4:39 pm

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.