'Helper function that blocks until the element with the given tag name
is found on the page.'

def wait_loaded_tag(self, tag_name, timeout=10):

    self.wait_until((lambda driver: driver.find_element_by_tag_name(tag_name)), timeout)
