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)

Want to kickstart your project?Use the new AI Studio to create your code