Answer the question
In order to leave comments, you need to log in
How to log assert in Selenium + PyTest using logger?
Hey!
I can't figure out if there is any way to log assert
when using the logger
Selenium + PyTest test automation library? If I want to log the error, I can use the method on_exception()
that inherits from AbstractEventListener
, but it doesn't catch AssertionError
, which makes sense.
How then to log assert
?
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question