2

Does page factory affect on performance for test execution when we have a lot of elements with @FindBy? We use Java as a programming language.

  • 1
    AFAIR, Java implementation of PageFactory decorates WebElements with dynamic proxy. So more information about impact of such proxies on performance can be found here: stackoverflow.com/questions/1856242/… – dzieciou Mar 20 '16 at 7:10
  • you may want to clarify which implementation/programming language you meant. – dzieciou Mar 20 '16 at 7:10
  • @dzieciou Thank you for your answer, I added programming language. – Zoran Mar 20 '16 at 9:02
  • @dzieciou why didn't you post the answer? It is definitely worth upvoating. – Alexey R. Jul 12 '18 at 11:58
  • @AlexeyR. Posted :-) – dzieciou Jul 12 '18 at 12:18
1

Java implementation of PageFactory decorates WebElements with a dynamic proxy. So more information about impact of such proxies on performance can be found here, among questions related to dynamic proxy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.