Page Object

Best practices, code snippets for common functionality, examples, and guidelines.
IvanT
Posts: 48
Joined: Wed Feb 06, 2019 8:00 pm

Page Object

Post by IvanT » Wed Dec 15, 2021 11:45 am

How to make PO patter for desktop app? has someone done it? if yes, could you give me a small example?

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

Re: Page Object

Post by odklizec » Wed Dec 15, 2021 4:29 pm

Hi,

I believe you already asked this in the past and the answer is still the same ;) Ranorex does not natively work with Page Object model. It's a Selenium thing. We have a much better approach called Repository ;) I understand why someone coming from Selenium would like to use something that he already knows and is used to. But I think that using Ranorex Repository is much better approach?

Here is your original post and my answer with link, where you can find some answers.
page-object-t17160.html
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