37 lines
927 B
Java
37 lines
927 B
Java
package org.fremo.fredl.test;
|
|
|
|
//import org.openqa.selenium.By;
|
|
import org.openqa.selenium.WebDriver;
|
|
//import org.openqa.selenium.WebElement;
|
|
//import org.openqa.selenium.firefox.FirefoxDriver;
|
|
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
|
|
//import org.openqa.selenium.support.ui.ExpectedCondition;
|
|
//import org.openqa.selenium.support.ui.WebDriverWait;
|
|
import org.testng.Assert;
|
|
import org.testng.annotations.AfterClass;
|
|
import org.testng.annotations.BeforeClass;
|
|
import org.testng.annotations.Test;
|
|
|
|
public class BasicTest {
|
|
private WebDriver driver;
|
|
String URL = "https://0.fredldev.fremo-net.eu";
|
|
|
|
@BeforeClass
|
|
public void testSetUp() {
|
|
|
|
driver = new HtmlUnitDriver(true);
|
|
}
|
|
|
|
@Test
|
|
public void verifyGooglePageTitle() {
|
|
driver.navigate().to(URL);
|
|
String getTitle = driver.getTitle();
|
|
Assert.assertEquals(getTitle, "FreDL");
|
|
}
|
|
|
|
@AfterClass
|
|
public void tearDown() {
|
|
driver.quit();
|
|
}
|
|
}
|