Little refactoring in selenium tests