org.kuali.rice.testtools.selenium
Class JiraAwareWebDriverUtils

java.lang.Object
  extended by org.kuali.rice.testtools.selenium.JiraAwareWebDriverUtils

public class JiraAwareWebDriverUtils
extends Object

All asserts call JiraAwareFailable.jiraAwareFail(java.lang.String) on failure.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
JiraAwareWebDriverUtils()
           
 
Method Summary
static void assertButtonDisabledByText(org.openqa.selenium.WebDriver driver, String buttonText, JiraAwareFailable failable)
           Fail if the button defined by the buttonText is enabled.
static void assertButtonEnabledByText(org.openqa.selenium.WebDriver driver, String buttonText, JiraAwareFailable failable)
           Fail if the button defined by the buttonText is disabled.
static void assertFalse(boolean booleanToAssertFalse, JiraAwareFailable failable)
          If booleanToAssertFalse is true call JiraAwareFailable.jiraAwareFail(java.lang.String).
static void assertFalse(String message, boolean booleanToAssertFalse, JiraAwareFailable failable)
          If booleanToAssertFalse is true call jiraAwareFail.
static void assertTrue(boolean booleanToAssertTrue, JiraAwareFailable failable)
          If booleanToAssertTrue is false call jiraAwareFail.
static void assertTrue(String message, boolean booleanToAssertTrue, JiraAwareFailable failable)
          If booleanToAssertTrue is false call jiraAwareFail with the given message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraAwareWebDriverUtils

public JiraAwareWebDriverUtils()
Method Detail

assertFalse

public static void assertFalse(boolean booleanToAssertFalse,
                               JiraAwareFailable failable)
If booleanToAssertFalse is true call JiraAwareFailable.jiraAwareFail(java.lang.String).

Parameters:
booleanToAssertFalse - to assert is false
failable - to call jiraAwareFail on if booleanToAssertFalse is true

assertFalse

public static void assertFalse(String message,
                               boolean booleanToAssertFalse,
                               JiraAwareFailable failable)
If booleanToAssertFalse is true call jiraAwareFail.

Parameters:
message - to include if booleanToAssertFalse is true
booleanToAssertFalse -

assertTrue

public static void assertTrue(boolean booleanToAssertTrue,
                              JiraAwareFailable failable)
If booleanToAssertTrue is false call jiraAwareFail.

Parameters:
booleanToAssertTrue -

assertTrue

public static void assertTrue(String message,
                              boolean booleanToAssertTrue,
                              JiraAwareFailable failable)
If booleanToAssertTrue is false call jiraAwareFail with the given message.

Parameters:
message - to include if booleanToAssertTrue is false
booleanToAssertTrue -
failable -

assertButtonDisabledByText

public static void assertButtonDisabledByText(org.openqa.selenium.WebDriver driver,
                                              String buttonText,
                                              JiraAwareFailable failable)

Fail if the button defined by the buttonText is enabled.

Parameters:
driver - to get the button from
buttonText - to identify the button
failable - to fail on if button identified by buttonText is enabled.

assertButtonEnabledByText

public static void assertButtonEnabledByText(org.openqa.selenium.WebDriver driver,
                                             String buttonText,
                                             JiraAwareFailable failable)

Fail if the button defined by the buttonText is disabled.

Parameters:
driver - to get the button from
buttonText - to identify the button
failable - to fail on if button identified by buttonText is disabled.


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.