Hacker News new | ask | show | jobs
by ckv428 4016 days 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.