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?
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.