I am using allure framework to generate reports for my pytest tests and behave (BDD) tests. In pytest the code is:
import allure
from allure.constants import AttachmentType
#use the below statement to attach the screenshot
allure.attach('screenshot', self.driver.get_screenshot_as_png(), type=AttachmentType.PNG)
However, I am unable to find a similar way in behave to attach the screenshots to my html report