def test_can_fill_form_by_id(browser, app_url):
    "should be able to fill a form by its id"
    browser.visit(app_url)
    browser.fill_form(
        {"firstname": "John", "lastname": "Doe"},
        form_id="login",
    )
    value = browser.find_by_name("firstname").value
    assert "John" == value
should be able to fill a form by its id
tests/test_all_drivers/test_form_elements.py