def test_is_element_not_present_by_xpath_returns_false_if_element_is_present(browser, app_url):
    """should is_element_not_present_by_xpath returns False if element is present"""
    browser.visit(app_url)
    browser.find_by_css(".add-async-element").click()
    assert len(browser.find_by_xpath("//h4")) > 0
    assert not browser.is_element_not_present_by_xpath("//h4")
should is_element_not_present_by_xpath returns False if element is present
tests/tests_webdriver/test_is_element_present.py