Artur
Artur

Reputation: 791

Where to put helper class using Page Object Model in Selenium?

I have a following structure in my project:
enter image description here
pages - for describing web-elements on the page with getter and setters.
tests - for tests using pages
resource - config file with url, username, password

I want to make a class User and use object of this class in the test. Where should I put it? In which directory?

Upvotes: 0

Views: 697

Answers (2)

Ivan Klymchuk
Ivan Klymchuk

Reputation: 26

It should be stored in the separate directory, e.g. entities directory. But not in the pages folder.

Upvotes: 1

Saroj Purbey
Saroj Purbey

Reputation: 280

It should be kept in pages. Test files and Page Objects must be in different locations.

Upvotes: 0

Related Questions