|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.webdriver.assertions.PluginCompareUtils
public final class PluginCompareUtils
Comparison utilities.
| Method Summary | |
|---|---|
protected static void |
addError(String expected,
String received,
IBlock block,
IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
Add error to result. |
static boolean |
compare(String expected,
String received,
IBlock block,
IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
Compare two strings. |
static boolean |
compareDate(PluginCompareDate compare,
String expected,
String received,
IBlock block,
IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
Perform date comparisons. |
protected static int |
compareElements(PluginCompareNode compare,
IContext context,
IResultSet result,
nu.xom.Element e,
org.openqa.selenium.WebElement we,
int errors)
Compare two elements and return the number of errors in comparison. |
static boolean |
compareNode(PluginCompareNode compare,
nu.xom.Element expected,
org.openqa.selenium.WebElement received,
IBlock block,
IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
Compare two nodes. |
protected static int |
compareTexts(PluginCompareNode compare,
IContext context,
IResultSet result,
nu.xom.Element expected,
org.openqa.selenium.WebElement received,
int errors)
Compare two nodes by theirs texts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean compare(String expected,
String received,
IBlock block,
IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
throws PluginException
expected - The expected value.received - The received value.block - The block.context - The context.result - The result set.client - The web driver.
PluginException - On comparison errors.
protected static void addError(String expected,
String received,
IBlock block,
IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
throws PluginException
expected - The expected value.received - The received value.block - The block.context - The context.result - The result set.client - The web driver.
PluginException - On errors.
public static boolean compareDate(PluginCompareDate compare,
String expected,
String received,
IBlock block,
IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
throws PluginException
compare - The plugin which hold format and tolerance information.expected - The expected value.received - The received value.block - The block.context - The context.result - The result set.client - The web driver.
PluginException - On comparison errors.
public static boolean compareNode(PluginCompareNode compare,
nu.xom.Element expected,
org.openqa.selenium.WebElement received,
IBlock block,
IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
compare - The compare plugin.expected - The expected content.received - The received content.block - The context block.context - The context.result - The result information.client - The WebDriver client.
protected static int compareTexts(PluginCompareNode compare,
IContext context,
IResultSet result,
nu.xom.Element expected,
org.openqa.selenium.WebElement received,
int errors)
compare - The plugin.context - The context.result - The result set.expected - The expected content.received - The received content.errors - The errors count.
protected static int compareElements(PluginCompareNode compare,
IContext context,
IResultSet result,
nu.xom.Element e,
org.openqa.selenium.WebElement we,
int errors)
compare - The compare plugin.context - The context.result - The result.e - The expected content.we - The received content.errors - The errors count.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||