0

I have read that Page Object Pattern is suitable for the Web Application Automation and I have used the Page object pattern with Selenium for one of the Web Apps I have automated.

How ever I am curious to know is Page Object suitable to Windows/Desktop applications ?. Though there is a scope in Windows Apps as well to create different Top level Windows as Pages and expose the operations as methods.

Has any one tried this and want to know the experiences/Advantages/disadvantages

IamV
  • 87
  • 2
  • 7

2 Answers2

3

The key equivalence here is page <=> dialog.

In a web app you encapsulate each page in a page object, while in a desktop app you encapsulate each dialog in an object that you might call a "dialog object".

The point is the encapsulation.

Over at my blog I've written about DRY page objects for testing web apps, but if you substitute dialog for page, it will apply equally well to dialog objects for desktop apps:

-- Keep Your Page Objects Clean and DRY

Burdette Lamar
  • 229
  • 2
  • 13
0

yes we can automate the desktop based application with Page object. you can refer WinAppDriverPageObjectModel

Neh18
  • 152
  • 1
  • 12