Refactored page factory and element class to allow elements with predefined selectors