Reputation: 45
how to embed a image into robot framework log file from Custom Library written in python?
I wanted to display a image into Robot report , how to do it programmatically not from keyword file
I tried this way but format in the second line seems to be wrong , how to give image as input here
from robot.api import logger
logger.info(<a img src="image.png"></a>,html=True)
Upvotes: 0
Views: 1809
Reputation: 386010
If you want to embed an image, use the <img>
tag:
from robot.api import logger
logger.info("<img src='image.png'/>", html=True)
Upvotes: 4