effective selenium testing strategy example code