def test_can_execute_javascript(browser, app_url):
    "should be able to execute javascript"
    browser.visit(app_url)
    browser.execute_script("$('body').empty()")
    assert "" == browser.find_by_tag("body").value
should be able to execute javascript
tests/tests_webdriver/test_javascript.py