Skip to content

Page Object Model (PoM) using Patrol #1460

Answered by zoskar
s0leris asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @s0leris, I raised the same question myself couple of months ago.

From my personal experience with Patrol the best approach is not to have a Page class for every screen in the app due to reduced device size. Instead of that I write a separate Page for a group of screens that are closely related to each other. If one screen has button that displays full screen timePicker widget there is no point in creating separate class for it.

If one Page starts to get too big I just split it. Reshaping POM takes a very little time - just write couple of tests the "plain" way and see for yourself which screens could be merged to avoid having one function Pages.

It's difficult to provide an example si…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@s0leris
Comment options

@zoskar
Comment options

zoskar Jul 7, 2023
Collaborator

@s0leris
Comment options

Answer selected by s0leris
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants