'Sets frame identified by `locator` as current frame.
Key attributes for frames are `id` and `name.` See `introduction` for
details about locating elements.'

@keyword
def select_frame(self, locator):

    self.info(("Selecting    frame    '%s'." % locator))
    element = self.find_element(locator)
    self.browser.switch_to.frame(element)
