updated expected_element to use the global default element wait