Index: /branches/features/purchaseOrders/test/functional/gnumims/functional/pages/HomePage.groovy
===================================================================
--- /branches/features/purchaseOrders/test/functional/gnumims/functional/pages/HomePage.groovy	(revision 917)
+++ /branches/features/purchaseOrders/test/functional/gnumims/functional/pages/HomePage.groovy	(revision 917)
@@ -0,0 +1,21 @@
+package gnumims.functional.pages
+
+import geb.Page
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: John
+ * Date: 26/04/2011
+ * Time: 7:17:32 PM
+ * To change this template use File | Settings | File Templates.
+ */
+class HomePage  extends Page {
+    static url = "http://localhost:8080/gnumims/appCore/start"
+
+    static at = { $("div#menu li.navigation_active").text() == "Home" }
+
+    static content = {
+        message { $("div.body div.message").text() }
+        logout(to:LoginPage) { $("a[class=logoutButton]") }
+    }
+}
Index: /branches/features/purchaseOrders/test/functional/gnumims/functional/pages/LoginPage.groovy
===================================================================
--- /branches/features/purchaseOrders/test/functional/gnumims/functional/pages/LoginPage.groovy	(revision 917)
+++ /branches/features/purchaseOrders/test/functional/gnumims/functional/pages/LoginPage.groovy	(revision 917)
@@ -0,0 +1,22 @@
+package gnumims.functional.pages
+
+import geb.Page
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: John
+ * Date: 26/04/2011
+ * Time: 2:03:04 PM
+ * To change this template use File | Settings | File Templates.
+ */
+class LoginPage extends Page {
+    static url = "http://localhost:8080/gnumims/login/auth"
+
+    static at = {$("h1").text() == "Welcome to gnuMims please log in"}
+
+    static content = {
+        login { $('#loginForm input[value=Login]') }
+        form { $("#loginForm")}
+        password { $("input[name=j_password]").value() }
+    }
+}
