refactoring changing re for selenium