Imporve the indexing function for the pages screenshot. by AmirHdm · Pull Request #1840 · robotframework/SeleniumLibrary
…_get_screenshot_path
/*
def _get_screenshot_path(self, filename):
if self._screenshot_root_directory != EMBED:
directory = self._screenshot_root_directory or self.log_dir
else:
directory = self.log_dir
filename = filename.replace("/", os.sep)
YY_MM_DD_HH_MM_SS = datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
while True:
YY_MM_DD_HH_MM_SS = datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
formatted = _format_path(filename, YY_MM_DD_HH_MM_SS)
path = os.path.join(directory, formatted)
# filename didn't contain {YY_MM_DD_HH_MM_SS} or unique path was found
if formatted == filename or not os.path.exists(path):
return path
*/
This action is inprogress