Added Expected Result as parameter in verify_element function