I have developed a framework on Selenium Python with Page Object Model, in which the driver is passes to different pages through constructor. For validation, I am using soft assertion that should execute till the end even if encountering failures. But, here I am facing the issue in the soft assertion where the code execution is getting stopped after encountering the first failure.
Here is the code for constructor which is defined for each page:
class Demo(BaseClass, softest.TestCase):
def __init__(self, driver, **kwds):
self.driver = driver
super().__init__(**kwds)
The below is the syntax used for soft assertion in order to validate:
self.soft_assert(self.assertEqual, actual, expected)