# Selenium page object work - does it find all elements at one go in same class?

I am wondering if page object is really fast. Lets say I define 10 or 20 elements in a page object class. I don't use it regularly. At any given time, I use only 2 3 elements or actions, all elements are used only for few workflow cases.

So I am wondering if Page object gives any performance advantage over using a single element usage without page object.

Does Page object assist in using cache to find all elements at one go, if you invoke it even once to do an action on one element?

• With the Page Object Model, each element is only found when you use it. If you're using Page Factory, which has some sort of FindBy annotation in the different bindings, the object just gets initialized when the Page Object is created. It doesn't actually try to find the element for use until you use it. in short, that's not going to have much, if any impact on your performance. – mrfreester Mar 25 '19 at 17:09