def test_take_screenshot_no_unique_file(browser, app_url):
    """When the unique_file parameter is false,
    Then the screenshot filename should match the name parameter exactly.
    """
    browser.visit(app_url)

    browser.screenshot(name="test_screenshot", unique_file=False)
    expected_filepath = os.path.abspath("test_screenshot.png")
    assert os.path.isfile(expected_filepath)
When the unique_file parameter is false,
    Then the screenshot filename should match the name parameter exactly.
    
tests/tests_webdriver/test_screenshot.py