Refactoring seleniulm actions