Re:My favorite underused Python idiom
by ckv428 on Wednesday June 24, 2015 @11:17PM
(#9775734)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.