How to optimize your tests using the Page Object Model.

Photo by John Barkiple on Unsplash

What is PageObject?

Page Object Model is an object design pattern, in which for every web page in the application, there should be a relevant page class, various elements on the page are defined as variables on the class. To interact with different elements of web page methods are implemented in the class.

Why should we use the Page Object Model?

So now with every change on a webpage…

Use AssertJ for fluent and more readable assertions.

Photo by timJ on Unsplash

What’s the difference between JUnit and AssertJ

Hi, there!

First of all, JUnit is an automated test framework that is built in Java, whereas AssertJ is an opensource library used for writing fluent and rich assertions in Java tests.

It’s true that you can write assertions just using JUnit, but if you ever have an extra half an hour for studying AssertJ, be sure to go for it. It will make your working process more effective and your code more readable.

Why should I use AssertJ?

  • easy to learn: Ready to dive in AssertJ? You can find all about AssertJ here.

Took me less than half an hour to get AssertJ.

  • easy…

Ania Duldiier

QA and free artist

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store