Newpage Solutions interview question

Explain fixtures in python? How do you work with them in the automation framework?

Interview Answer

Anonymous

29 Oct 2021

pytest fixtures are functions attached to the tests which run before the test function is executed. Fixtures are a set of resources that have to be set up before and cleaned up once the Selenium test automation execution is completed.