package dk.sst.oiosaml.wsfed;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Test {

	public static void main(String[] args) {
		WebDriver driver = new FirefoxDriver();
		
		driver.get("http://localhost:8080/wsfed/");
		
		driver.findElement(By.linkText("Page requiring login")).click();
		driver.close();
	}
}

@@ -35,229 +35,598 @@
 ort 
-org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.firefox.FirefoxDriver;%0A%0Apublic class Test %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09WebDriver driver = new FirefoxDriver();%0A%09%09%0A
+static org.junit.Assert.assertTrue;%0A%0Aimport java.net.MalformedURLException;%0Aimport java.net.URL;%0A%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.WebElement;%0Aimport org.openqa.selenium.remote.DesiredCapabilities;%0Aimport org.openqa.selenium.remote.RemoteWebDriver;%0A%0Apublic class Test %7B%0A%0A%09public static void main(String%5B%5D args) throws MalformedURLException, Exception %7B%0A//%09%09WebDriver driver = new FirefoxDriver();%0A%09%09WebDriver driver = new RemoteWebDriver(new URL(%22http://test01.npi.netic.dk:8088/hub%22), DesiredCapabilities.firefox());%0A%09%09try %7B%0A%09
 %09%09dr
@@ -646,17 +646,27 @@
 p://
-localhost
+jre-mac.trifork.com
 :808
@@ -681,11 +681,10 @@
 %22);%0A
-%09%09
 %0A
+%09
 %09%09dr
@@ -750,23 +750,432 @@
 ();%0A
-%09%09driver.close(
+%0A%09%09%09Thread.sleep(100000);%0A%09%09%09System.out.println(driver.findElements(By.tagName(%22a%22)));%0A%09%09%09for (WebElement e : driver.findElements(By.tagName(%22a%22))) %7B%0A%09%09%09%09System.out.println(e.getValue());%0A%09%09%09%7D%0A//%09%09%09driver.findElement(By.linkText(%22Log p%C3%A5 med testcertifikat%22)).click();%0A%09%09%09%0A%09%09%09System.out.println(driver.getCurrentUrl());%0A%09%09%09%0A%09%09%7D finally %7B%0A%09%09%09driver.close();%0A%09%09%7D%0A%09%7D%0A%09%0A%09@org.junit.Test%0A%09public void success() %7B%0A%09%09assertTrue(true
 );%0A%09

add a single test