P
P
PesyCorm2021-03-22 17:53:40
Python
PesyCorm, 2021-03-22 17:53:40

How to log assert in Selenium + PyTest using logger?

Hey!
I can't figure out if there is any way to log assertwhen using the loggerSelenium + 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

1 answer(s)
D
Dimonchik, 2021-03-22
@PesyCorm

https://stackoverflow.com/questions/35442415/canon...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question