replacing assertIn in selenium tests