@@ -0,0 +1,1856 @@
+package thesecondlesson;%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.chrome.ChromeDriver;%0Aimport org.openqa.selenium.edge.EdgeDriver;%0Aimport org.openqa.selenium.firefox.FirefoxBinary;%0Aimport org.openqa.selenium.firefox.FirefoxDriver;%0Aimport org.openqa.selenium.firefox.FirefoxProfile;%0Aimport org.openqa.selenium.remote.DesiredCapabilities;%0Aimport org.openqa.selenium.support.ui.WebDriverWait;%0A%0Aimport java.io.File;%0A%0A%0A/**%0A * Created by Etery on 27.02.2017.%0A */%0Apublic class TheForthTest %7B%0A%0A    private WebDriver driver;%0A    private WebDriverWait wait;%0A%0A    @Before%0A    public void setDriver() %7B%0A%0A        // System.setProperty(%22webdriver.chrome.driver%22,%22./src/test/resources/chromedriver.exe%22);%0A        //driver = new ChromeDriver();%0A        //driver = new EdgeDriver();%0A        //DesiredCapabilities caps = new DesiredCapabilities();%0A        //caps.setCapability(FirefoxDriver.MARIONETTE, false);%0A        driver = new FirefoxDriver(new FirefoxBinary(new File(%22C:%5C%5CProgram Files (x86)%5C%5CNightly%5C%5Cfirefox.exe%22)),%0A                new FirefoxProfile(),new DesiredCapabilities());%0A        wait = new WebDriverWait(driver, 10, 20);%0A    %7D%0A%0A    @Test%0A    synchronized public void theForthTest() throws InterruptedException %7B%0A        driver.get(%22http://localhost/litecart/admin/%22);%0A        Thread.sleep(1000);%0A        driver.findElement(By.name(%22username%22)).sendKeys(%22admin%22);%0A        driver.findElement(By.name(%22password%22)).sendKeys(%22admin%22);%0A        driver.findElement(By.name(%22login%22)).click();%0A        Thread.sleep(1000);%0A        assert driver.findElement(By.xpath(%22//*%5Bcontains(text(),%5C%22You are now logged in as admin%5C%22)%5D%22)).isDisplayed();%0A    %7D%0A%0A    @After%0A    public void stop() %7B%0A        driver.quit();%0A        driver = null;%0A    %7D%0A%7D%0A

add the code for the second lesson