Рет қаралды 2,324
A constructor has to be created in each of the class in the Page Layer (POM), in order to get the driver instance from the Main class in Test Layer and also to initialize WebElements (Page Objects) declared in the page class using PageFactory.