@@ -0,0 +1,1547 @@
+import pytest%0Afrom selenium import webdriver%0Afrom selenium.webdriver.support.wait import WebDriverWait%0Afrom selenium.webdriver.support import expected_conditions as EC%0Afrom selenium.webdriver.common.by import By%0Afrom wheel.signatures import assertTrue%0A%0A%0A@pytest.fixture%0Adef driver(request):%0A    # wd = webdriver.Firefox()%0A    wd = webdriver.Chrome()%0A    # wd = webdriver.Chrome(desired_capabilities=%7B%22chromeOptions%22: %7B%22args%22: %5B'--start-fullscreen'%5D%7D%7D)%0A    wd.implicitly_wait(2)%0A    request.addfinalizer(wd.quit)%0A    return wd%0A%0Adef test_left_menu(driver):%0A%0A    driver.get(%22http://localhost/litecart/admin%22)%0A%0A    driver.find_element_by_name(%22username%22).send_keys(%22admin%22)%0A    driver.find_element_by_name(%22password%22).send_keys(%22admin%22)%0A    driver.find_element_by_name(%22login%22).click()%0A%0A    WebDriverWait(driver, 5).until(EC.title_is(%22My Store%22))%0A%0A    menu = driver.find_element_by_id(%22box-apps-menu%22)%0A    menu_items = %5B%5D%0A    for menu_name in menu.find_elements_by_css_selector('.name'):%0A        menu_items.append(menu_name.text)%0A    for menu_item in menu_items:%0A        driver.find_element_by_link_text(menu_item).click()%0A        assertTrue(driver.find_element_by_tag_name('h1').is_displayed())%0A%0A        sub_menu_items = %5B%5D%0A        for sub_menu_name in driver.find_elements_by_css_selector('.docs .name'):%0A            sub_menu_items.append(sub_menu_name.text)%0A        for sub_menu_item in sub_menu_items:%0A            driver.find_element_by_link_text(sub_menu_item).click()%0A            assertTrue(driver.find_element_by_tag_name('h1').is_displayed())%0A

day 4 task 7