Generation

generate functionTue, 31 Jan 2023

make allure report attach screenshot

from allure.constants import AttachmentType import allure @allure.step('Make screenshot') def make_screenshot(driver, name): allure.attach(driver.get_screenshot_as_png(), name, AttachmentType.PNG)

Questions about programming?Chat with your personal AI assistant