View Javadoc

1   package org.kuali.student.lum.ui.selenium;
2   
3   import junit.framework.Assert;
4   
5   import org.junit.Test;
6   import org.openqa.selenium.WebDriver;
7   import org.openqa.selenium.firefox.FirefoxDriver;
8   
9   public class GoogleTest {
10  
11      @Test
12      public void simpleTest() throws Throwable {
13          try {
14              WebDriver driver = new FirefoxDriver();
15              driver.get("http://www.google.com");
16              String title = driver.getTitle();
17              Assert.assertEquals("Google", title);
18              driver.quit();
19          } catch (Throwable e) {
20              e.printStackTrace();
21              throw e;
22          }
23      }
24  }