<|file_name|>test_login.py<|end_file_name|><｜fim▁begin｜>import pytest
from selenium import webdriver


@pytest.fixture
def driver(request):
    wd = webdriver.Firefox(capabilities={"marionette": True})
    #(desired_capabilities={"chromeOptions": {"args": ["--start-fullscreen"]}})
    request.addfinalizer(wd.quit)
    return wd


def test_example(driver):
    <|fim_middle|>




<｜fim▁end｜>
    driver.get("http://localhost/litecart/admin/")
    driver.find_element_by_xpath("//input[@name='username']").send_keys("admin")
    driver.find_element_by_xpath("//input[@name='password']").send_keys("admin")
    driver.find_element_by_xpath("//button[@name='login']").click()