Revert lettuce css_find function to not fail if it does not find the element.

This commit is contained in:
Jay Zoldak
2013-03-08 12:29:44 -05:00
parent d9b68e2de2
commit 3c3f6c3cbe
2 changed files with 3 additions and 11 deletions

View File

@@ -126,7 +126,7 @@ def css_find(css):
def is_visible(driver):
return EC.visibility_of_element_located((By.CSS_SELECTOR,css,))
assert_true(world.browser.is_element_present_by_css(css, 5))
world.browser.is_element_present_by_css(css, 5)
wait_for(is_visible)
return world.browser.find_by_css(css)