Page object

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

Page object

Post by IvanT » Wed Nov 25, 2020 10:15 pm

Could someone tell me how to make page object patter with desktop app using ranorex. The best help will be a small example. thanks.

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

Re: Page object

Post by odklizec » Thu Nov 26, 2020 7:12 am

Hi,

I'm afraid, there are no examples of Page Object Model implementation in Ranorex. Ranorex uses element Repository to organize UI elements, so there is no need to implement Page Object Model? At least I don't see a reason to implement different element organization workflow? The best you can probably do is to follow some advices from this post:
viewtopic.php?f=20&t=15251&p=59528
However, I would personally stick with Ranorex workflow and not to try to bend Ranorex framework to do something completely different that it's designed to do.
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