How to make Repos items discoverable on desktop & mobile

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
niteshr
Posts: 18
Joined: Fri Jul 11, 2014 7:41 am

How to make Repos items discoverable on desktop & mobile

Post by niteshr » Thu Jun 29, 2017 12:28 pm

Hi Guys,

I have a repository where I want to make the items generic. I want to use one repository for testing on desktop browsers as well as mobile devices.

Now the dom object rxPath is something like this for a mobile device:

Code: Select all

/mobileapp[@title='ranorex.RxBrowser']/form[@title='RxBrowserActivity']//dom[@domain='xxx']
For desktop it is just

Code: Select all

/dom[@domain='xxx]'
I've tried the following to make the element discoverable on desktop and device, however it is way too slow. It takes up to 3 minutes to eventually find the element

Code: Select all

/mobileapp?/form?//dom[@domain='xxx']
From what I have read, this rxpath will search /mobileapp/form//dom or just //dom

Please advise me on a better alternative

User avatar
RobinHood42
Posts: 324
Joined: Fri Jan 09, 2015 3:24 pm

Re: How to make Repos items discoverable on desktop & mobile

Post by RobinHood42 » Fri Jul 07, 2017 9:48 am

Hello niteshr,

I'm afraid that if you really want to make your paths that dynamic, there is no way to increase the object recognition speed.

Especially, optional containers at root level causes Ranorex to traverse trough all running applications, which of course, takes some time.

Cheers,
Robin 8)