Swap Selenium's context to the given frame or iframe.

def switch_to_frame_with_class(self, frame):
    """Swap Selenium's context to the given frame or iframe."""
    elem = world.browser.find_element_by_class_name(frame)
    world.browser.switch_to.frame(elem)