Page Object Model

Best practices, code snippets for common functionality, examples, and guidelines.
Posts: 1
Joined: Mon Dec 09, 2019 1:39 pm

Page Object Model

Post by Trish » Mon Dec 09, 2019 1:46 pm


I want to create a Page Object for our desktop application and I found helpful information for the Ranorex webtestit ( ... roduction/) but I need information for Ranorex studio but I don't have any idea how to create page object model using Ranorex studio?


User avatar
Ranorex Guru
Ranorex Guru
Posts: 7469
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Page Object Model

Post by odklizec » Tue Dec 10, 2019 12:19 pm


I'm afraid, Ranorex Studio and Ranorex Webtestit are completely different apps. How I understand the Page object from the Webtestit description, it's a mechanism to organize and use web elements at single place? Ranorex Studio does the same via repository, where all UI elements are stored in single (or multiple, if you wish) repository, which is accessible for all recordings and code modules.

Could you please explain, in more details, what exactly you want to achieve and what exactly you missing in Ranorex Studio?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Posts: 1
Joined: Fri Mar 13, 2020 10:47 am

Re: Page Object Model

Post by patrick.spaeth » Fri Mar 13, 2020 10:53 am

Hi Trish,

We also use the Page Object Model with Ranorex Studio for Desktop applications.
Unfortunately I did not find a common approach from Ranorex Studio (or best practice)

Therefore we created our own:
We use a repository for each Page/View and create recordings with the common workflows within this page/view. (Page Object)
In another Ranorex Project we will then use all Page Objects and create our testcases out of the common recordings.

I hope this helps you a little.