Query about new Extent report video (how to store screenshots in dynamically created folder) | Selenium Forum
S
Swinal Patel Posted on 05/05/2020

i have seen this video but can you please let me know how to store screenshots taken by webdriver into the folder which is created dynamically in the ExtentManager class. i have created the takeScreenShot in BaseTest class in DDT with junit framework but in that function how can i store screenshots in dynamically crated folder.


A
Ashish Thakur Replied on 05/05/2020

You can create a variable named screenshotPath in extent manager

When you create the reports then you can initialize this variable in extent manager

Later you can access this variable when you are taking screenshot to know about path


S
Swinal Patel Replied on 05/05/2020

Thank you so much for your help. yes it will work now. thanks for quick response.


Related Posts