@@ -0,0 +1,1303 @@
+package com.dilook.training.selenium;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.WebElement;%0Aimport org.openqa.selenium.remote.DesiredCapabilities;%0A%0Aimport java.io.IOException;%0Aimport java.util.List;%0A%0Aimport static com.dilook.training.selenium.WebDriverTestUtils.selectWebDriver;%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertFalse;%0A%0A/**%0A * Created by Di on 25.08.2017.%0A */%0Apublic class LitecartCheckStickersTest %7B%0A%0A    private WebDriver webDriver;%0A%0A    @Before%0A    public void start() throws IOException %7B%0A        DesiredCapabilities caps = new DesiredCapabilities();%0A        webDriver = selectWebDriver(caps);%0A    %7D%0A%0A    @Test%0A    public void clickMenu() %7B%0A%0A        webDriver.get(%22http://localhost/litecart/en/%22);%0A%0A        List%3CWebElement%3E products = webDriver.findElements(By.cssSelector(%22.product%22));%0A%0A        assertFalse(products.isEmpty());%0A%0A        for (WebElement element : products) %7B%0A            int countStickers = element.findElements(By.cssSelector(%22.sticker%22)).size();%0A%0A            assertEquals(countStickers, 1);%0A        %7D%0A    %7D%0A%0A    @After%0A    public void stop() %7B%0A        webDriver.quit();%0A        webDriver = null;%0A    %7D%0A%7D%0A

add homework #8