code: def take_screenshot(webdriver, file_name):
          
          folder_location = os.path.join(ProjectUtils.get_project_root(),
                                         WebScreenShotUtil.SCREEN_SHOT_LOCATION)
  
          WebScreenShotUtil.__capture_screenshot(
              webdriver, folder_location, file_name + ".png")
docs: Captures a screenshot.
  
          Args:
              webdriver (WebDriver) - Selenium webdriver.
              file_name (str) - File name to save screenshot as.