code: def capture_screenshot(self, name):
          
          filename = '{0:0=2d}_{1}'.format(DriverWrappersPool.screenshots_number, name)
          filename = '{}.png'.format(get_valid_filename(filename))
          filepath = os.path.join(DriverWrappersPool.screenshots_directory, filename)
          if not os.path.exists(DriverWrappersPool.screenshots_directory):
              os.makedirs(DriverWrappersPool.screenshots_directory)
          if self.driver_wrapper.driver.get_screenshot_as_file(filepath):
              self.logger.info('Screenshot saved in %s', filepath)
              DriverWrappersPool.screenshots_number += 1
              return filepath
          return None
docs: Capture screenshot and save it in screenshots folder
  
          :param name: screenshot name suffix
          :returns: screenshot path