Refactoring for using arrow_selenium as library