org.kuali.hr.time.test
Class HtmlUnitUtil

java.lang.Object
  extended by org.kuali.hr.time.test.HtmlUnitUtil

public class HtmlUnitUtil
extends Object


Constructor Summary
HtmlUnitUtil()
           
 
Method Summary
static com.gargoylesoftware.htmlunit.html.HtmlPage clickAnchorContainingText(com.gargoylesoftware.htmlunit.html.HtmlPage page, String... values)
           
static com.gargoylesoftware.htmlunit.html.HtmlPage clickInputContainingText(com.gargoylesoftware.htmlunit.html.HtmlPage page, String... values)
           
static void createTempFile(com.gargoylesoftware.htmlunit.html.HtmlPage page)
           
static void createTempFile(com.gargoylesoftware.htmlunit.html.HtmlPage page, String name)
           
protected static boolean elementContainsValues(com.gargoylesoftware.htmlunit.html.HtmlElement element, String... values)
           
static com.gargoylesoftware.htmlunit.html.HtmlAnchor getAnchorContainingText(com.gargoylesoftware.htmlunit.html.HtmlPage page, String... values)
           
static String getBaseURL()
           
static String getContext()
           
static com.gargoylesoftware.htmlunit.html.HtmlForm getDefaultForm(com.gargoylesoftware.htmlunit.html.HtmlPage htmlPage)
           
static com.gargoylesoftware.htmlunit.html.HtmlInput getInputContainingText(com.gargoylesoftware.htmlunit.html.HtmlForm form, String text)
           
static com.gargoylesoftware.htmlunit.html.HtmlInput getInputContainingText(com.gargoylesoftware.htmlunit.html.HtmlPage page, String... values)
           
static List<com.gargoylesoftware.htmlunit.html.HtmlInput> getInputsContainingText(com.gargoylesoftware.htmlunit.html.HtmlPage page, String... values)
           
static Integer getPort()
           
static String getTempDir()
           
static com.gargoylesoftware.htmlunit.html.HtmlPage gotoPageAndLogin(String url)
           
static com.gargoylesoftware.htmlunit.html.HtmlPage gotoPageAndLogin(String url, boolean enableJavascript)
           
static boolean pageContainsText(com.gargoylesoftware.htmlunit.html.HtmlPage page, String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlUnitUtil

public HtmlUnitUtil()
Method Detail

gotoPageAndLogin

public static com.gargoylesoftware.htmlunit.html.HtmlPage gotoPageAndLogin(String url)
                                                                    throws Exception
Parameters:
url -
Returns:
htmlpage without js enabled
Throws:
Exception

gotoPageAndLogin

public static com.gargoylesoftware.htmlunit.html.HtmlPage gotoPageAndLogin(String url,
                                                                           boolean enableJavascript)
                                                                    throws Exception
Parameters:
url -
enableJavascript -
Returns:
htmlpage with js enabled
Throws:
Exception

pageContainsText

public static boolean pageContainsText(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                       String text)

clickInputContainingText

public static com.gargoylesoftware.htmlunit.html.HtmlPage clickInputContainingText(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                                                                   String... values)
                                                                            throws Exception
Throws:
Exception

getInputContainingText

public static com.gargoylesoftware.htmlunit.html.HtmlInput getInputContainingText(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                                                                  String... values)
                                                                           throws Exception
Throws:
Exception

getInputsContainingText

public static List<com.gargoylesoftware.htmlunit.html.HtmlInput> getInputsContainingText(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                                                                         String... values)
                                                                                  throws Exception
Throws:
Exception

elementContainsValues

protected static boolean elementContainsValues(com.gargoylesoftware.htmlunit.html.HtmlElement element,
                                               String... values)

clickAnchorContainingText

public static com.gargoylesoftware.htmlunit.html.HtmlPage clickAnchorContainingText(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                                                                    String... values)
                                                                             throws Exception
Throws:
Exception

getAnchorContainingText

public static com.gargoylesoftware.htmlunit.html.HtmlAnchor getAnchorContainingText(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                                                                    String... values)
                                                                             throws Exception
Throws:
Exception

getBaseURL

public static String getBaseURL()

getContext

public static String getContext()

getTempDir

public static String getTempDir()

getPort

public static Integer getPort()

createTempFile

public static void createTempFile(com.gargoylesoftware.htmlunit.html.HtmlPage page)
                           throws Exception
Throws:
Exception

createTempFile

public static void createTempFile(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                  String name)
                           throws Exception
Throws:
Exception

getInputContainingText

public static com.gargoylesoftware.htmlunit.html.HtmlInput getInputContainingText(com.gargoylesoftware.htmlunit.html.HtmlForm form,
                                                                                  String text)
                                                                           throws Exception
Throws:
Exception

getDefaultForm

public static com.gargoylesoftware.htmlunit.html.HtmlForm getDefaultForm(com.gargoylesoftware.htmlunit.html.HtmlPage htmlPage)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.