package com.dilook.training.selenium;

import org.junit.BeforeClass;
import org.openqa.selenium.By;

/**
 * Created by Di on 29.08.2017.
 */
public class AdminLoginTest extends BaseTest {

    @BeforeClass
    public static void openAdminSideTest() {
        webDriver.navigate().to("https://litecart.000webhostapp.com/admin/login.php");
        webDriver.findElement(By.name("username")).sendKeys("admin");
        webDriver.findElement(By.name("password")).sendKeys("admin");
        webDriver.findElement(By.name("login")).click();

        //System.out.println(((HasCapabilities) webDriver).getCapabilities());
    }
}

@@ -94,16 +94,90 @@
 um.By;%0A%0A
+import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs;%0A%0A
 /**%0A * C
@@ -401,24 +401,74 @@
 ogin.php%22);%0A
+        webDriverWait.until(titleIs(%22My Store%22));%0A
         webD

add wait condition