WebDriver support library, there is a
PageFactory class that provides a series of annotations, which can be used when you create page objects.
You can use this class to predefine a series of
WebElements, which can be used later in your test. The
PageFactory class turns these
WebElement objects into proxied objects using a Java Proxy class. When you try to use them, the annotations that you specify are used to transform these proxied objects into real
WebElement objects, which can be used in your tests. We need to do the following two things to use the