Page 1 of 1

How to make Repos items discoverable on desktop & mobile

Posted: Thu Jun 29, 2017 12:28 pm
by niteshr
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

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

Posted: Fri Jul 07, 2017 9:48 am
by RobinHood42
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)