Refactoring Selenium Browsing Actions