Logging in extent reports in Page classes | Selenium Forum
M
Posted on 27/12/2016
Hi Ashish,

with the the help of ExtentManager class, we were logging the info in test class like "logging in to the system". but what if i also want to generate the logs for the actions we are doing in page class. like "Enter the user name : ABC", "Enter the PAssword : password", "Click on Submit".

I can also create the obj of ExtentManager in BasePage as you have done it BaseTest. but then how will i manage to call endTest() and flush().
because for each test we should have a new obj of ExtenReports class. How to do this.

M
Replied on 27/12/2016

Got the solution in tutorial.

Thanks.