@@ -0,0 +1,1229 @@
+package ru.stqa.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.chrome.ChromeDriver;%0Aimport org.openqa.selenium.chrome.ChromeOptions;%0A%0Aimport java.util.List;%0Aimport java.util.concurrent.TimeUnit;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0A/**%0A * Created by ilya on 04/02/2017.%0A */%0Apublic class MainPage %7B%0A    WebDriver driver;%0A%0A    @Before%0A    public void before()%7B%0A        ChromeOptions chromeOptions = new ChromeOptions();%0A        chromeOptions.addArguments(%22start-fullscreen%22);%0A        driver = new ChromeDriver(chromeOptions);%0A        driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);%0A        driver.get(%22http://localhost/litecart/%22);%0A    %7D%0A%0A    @Test%0A    public void eachProductShouldHaveOneLabel()%7B%0A        List%3CWebElement%3E products = driver.findElements(By.cssSelector(%22li.product%22));%0A        for (WebElement product : products) %7B%0A            assertTrue(product.findElements(By.cssSelector(%22div.sticker%22)).size() == 1);%0A        %7D%0A    %7D%0A%0A    @After%0A    public void after()%7B%0A        driver.quit();%0A        driver = null;%0A    %7D%0A%7D%0A

add eachProductShouldHaveOneLabel