2 ms·
I've had success implementing context managers with page object models when testing with selenium. All page objects assume the same base page (e.g. the home pag
by ckv428 11y ago
I've had success implementing context managers with page object models when testing with selenium. All page objects assume the same base page (e.g. the home page of the web app) and will return the browser to that page upon exiting the with block. It works really well.