Can you move this whole method into `base.py` ?
Then we can use it globally and it also makes the `select_element()` method obsolete.