fix has_exected_element? should be also defined to wait_for_exected_element to work