+1 I didn't think about duplication in my previous comment but yes, we should have this in page.py. Also, we should slowly change tests one-by-one whenever we work on them to use this so that we are consistent.