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.
Download
0 formats
No download links available.
Why Constructor in Page Object Model ? | QA Automation Talk | NatokHD