|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.selenium.SeleniumChecks
public class SeleniumChecks
| Constructor Summary | |
|---|---|
SeleniumChecks(com.thoughtworks.selenium.Selenium client,
SeleniumConfiguration config)
|
|
| Method Summary | |
|---|---|
boolean |
attributeContainsValue(PageElement element,
String attribute,
String value)
|
boolean |
attributeContainsValue(String locator,
String attribute,
String value)
Asserts that the element given by the locator has an attribute which contains the required value. |
boolean |
attributeDoesntContainValue(PageElement element,
String attribute,
String value)
|
boolean |
attributeDoesntContainValue(String locator,
String attribute,
String value)
Asserts that the element given by the locator has an attribute which does not contain the given value. |
boolean |
byTimeout(Condition condition)
|
boolean |
byTimeout(Condition condition,
long maxWaitTime)
|
boolean |
elementContainsText(PageElement element,
String text)
|
boolean |
elementContainsText(String locator,
String text)
Asserts that an element contains the given text. |
boolean |
elementDoesNotContainText(PageElement element,
String text)
|
boolean |
elementDoesNotContainText(String locator,
String text)
Asserts that an element does not contain the given text. |
boolean |
elementDoesntHaveText(PageElement element,
String text)
|
boolean |
elementDoesntHaveText(String locator,
String text)
Asserts that the element specified by the locator does not contain the specified text |
boolean |
elementHasText(PageElement element,
String text)
|
boolean |
elementHasText(String locator,
String text)
Asserts that the element specified by the locator contains the specified text |
boolean |
elementNotPresent(PageElement element)
|
boolean |
elementNotPresent(String locator)
Asserts that a given element is not present on the current page |
boolean |
elementNotPresentByTimeout(PageElement element)
|
boolean |
elementNotPresentByTimeout(PageElement element,
long maxMillis)
|
boolean |
elementNotPresentByTimeout(String locator)
|
boolean |
elementNotPresentByTimeout(String locator,
long maxMillis)
This will wait until an element is not present. |
boolean |
elementNotPresentUntilTimeout(PageElement element)
|
boolean |
elementNotPresentUntilTimeout(PageElement element,
long maxMillis)
|
boolean |
elementNotPresentUntilTimeout(String locator)
|
boolean |
elementNotPresentUntilTimeout(String locator,
long maxMillis)
|
boolean |
elementNotVisible(PageElement element)
|
boolean |
elementNotVisible(String locator)
Asserts that a given element is not present and visible. |
boolean |
elementPresent(PageElement element)
|
boolean |
elementPresent(String locator)
Asserts that a given element is present |
boolean |
elementPresentByTimeout(PageElement element)
|
boolean |
elementPresentByTimeout(PageElement element,
long maxMillis)
|
boolean |
elementPresentByTimeout(String locator)
|
boolean |
elementPresentByTimeout(String locator,
long maxMillis)
|
boolean |
elementPresentUntilTimeout(PageElement element)
|
boolean |
elementPresentUntilTimeout(PageElement element,
long maxMillis)
|
boolean |
elementPresentUntilTimeout(String locator)
|
boolean |
elementPresentUntilTimeout(String locator,
long maxMillis)
|
boolean |
elementsSameHeight(PageElement element1,
PageElement element2,
int deltaPixels)
|
boolean |
elementsSameHeight(String locator1,
String locator2,
int deltaPixels)
|
boolean |
elementsVerticallyAligned(PageElement element1,
PageElement element2,
int deltaPixels)
|
boolean |
elementsVerticallyAligned(String locator1,
String locator2,
int deltaPixels)
Asserts that two elements (located by selenium syntax) are vertically within deltaPixels of each other. |
boolean |
elementVisible(PageElement element)
|
boolean |
elementVisible(String locator)
Asserts that a given element is present and is visible. |
boolean |
elementVisibleContainsText(PageElement element,
String text)
|
boolean |
elementVisibleContainsText(String locator,
String text)
Asserts that a given element is visible and also contains the given text. |
boolean |
formElementEquals(String locator,
String value)
Asserts that a given element has a specified value |
boolean |
htmlNotPresent(String html)
Asserts that a particular piece of HTML is not present in the HTML source. |
boolean |
htmlPresent(String html)
Asserts that a particular piece of HTML is present in the HTML source. |
boolean |
linkNotPresentWithText(String text)
Asserts that no link exists on the page containing the given text |
boolean |
linkPresentWithText(String text)
Asserts that a link containing the given text appears on the page |
boolean |
linkVisibleWithText(String text)
Asserts that a link containin the given text is present and visible. |
boolean |
notVisibleByTimeout(PageElement element)
|
boolean |
notVisibleByTimeout(PageElement element,
long maxMillis)
|
boolean |
notVisibleByTimeout(String locator)
|
boolean |
notVisibleByTimeout(String locator,
long maxMillis)
|
boolean |
textNotPresent(String text)
|
boolean |
textNotPresentByTimeout(String text)
|
boolean |
textNotPresentByTimeout(String text,
long maxMillis)
|
boolean |
textPresent(String text)
|
boolean |
textPresentByTimeout(String text)
|
boolean |
textPresentByTimeout(String text,
long maxMillis)
|
boolean |
untilTimeout(Condition condition)
|
boolean |
untilTimeout(Condition condition,
long maxWaitTime)
|
boolean |
visibleByTimeout(PageElement element)
|
boolean |
visibleByTimeout(PageElement element,
long maxMillis)
|
boolean |
visibleByTimeout(String locator)
|
boolean |
visibleByTimeout(String locator,
long maxMillis)
This will wait until an element is visible. |
boolean |
windowClosed(String windowName)
|
boolean |
windowOpen(String windowName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SeleniumChecks(com.thoughtworks.selenium.Selenium client,
SeleniumConfiguration config)
| Method Detail |
|---|
public boolean visibleByTimeout(String locator)
public boolean visibleByTimeout(PageElement element)
public boolean visibleByTimeout(String locator,
long maxMillis)
locator - the selenium element locatormaxMillis - how long to wait as most in milliseconds
public boolean visibleByTimeout(PageElement element,
long maxMillis)
public boolean notVisibleByTimeout(String locator)
public boolean notVisibleByTimeout(PageElement element)
public boolean notVisibleByTimeout(String locator,
long maxMillis)
public boolean notVisibleByTimeout(PageElement element,
long maxMillis)
public boolean elementPresentByTimeout(String locator)
public boolean elementPresentByTimeout(PageElement element)
public boolean elementPresentByTimeout(String locator,
long maxMillis)
public boolean elementPresentByTimeout(PageElement element,
long maxMillis)
public boolean elementPresentUntilTimeout(String locator)
public boolean elementPresentUntilTimeout(PageElement element)
public boolean elementPresentUntilTimeout(String locator,
long maxMillis)
public boolean elementPresentUntilTimeout(PageElement element,
long maxMillis)
public boolean elementNotPresentByTimeout(String locator)
public boolean elementNotPresentByTimeout(PageElement element)
public boolean elementNotPresentUntilTimeout(String locator)
public boolean elementNotPresentUntilTimeout(PageElement element)
public boolean elementNotPresentUntilTimeout(String locator,
long maxMillis)
public boolean elementNotPresentUntilTimeout(PageElement element,
long maxMillis)
public boolean textPresentByTimeout(String text,
long maxMillis)
public boolean textPresentByTimeout(String text)
public boolean textNotPresentByTimeout(String text,
long maxMillis)
public boolean textNotPresentByTimeout(String text)
public boolean elementNotPresentByTimeout(String locator,
long maxMillis)
locator - the selenium element locatormaxMillis - how long to wait as most in milliseconds
public boolean elementNotPresentByTimeout(PageElement element,
long maxMillis)
public boolean byTimeout(Condition condition)
public boolean byTimeout(Condition condition,
long maxWaitTime)
public boolean untilTimeout(Condition condition)
public boolean untilTimeout(Condition condition,
long maxWaitTime)
public boolean textPresent(String text)
text - Asserts that text is present in the current pagepublic boolean textNotPresent(String text)
text - Asserts that text is not present in the current page
public boolean formElementEquals(String locator,
String value)
locator - Locator for element using the standard selenium locator syntaxvalue - The value the element is expected to containpublic boolean elementPresent(String locator)
locator - Locator for the element that should be present given using the standard selenium locator syntaxpublic boolean elementPresent(PageElement element)
public boolean elementNotPresent(String locator)
locator - Locator for the element that should not be present given using the standard selenium locator syntaxpublic boolean elementNotPresent(PageElement element)
public boolean elementVisible(String locator)
locator - Locator for the element that should be visible specified in the standard selenium syntaxpublic boolean elementVisible(PageElement element)
public boolean elementNotVisible(String locator)
locator - Locator for the element that should not be visible specified in the standard selenium syntaxpublic boolean elementNotVisible(PageElement element)
public boolean elementVisibleContainsText(String locator,
String text)
locator - Locator for the element that should be visible specified in the standard selenium syntaxtext - the text that the element should contain
public boolean elementVisibleContainsText(PageElement element,
String text)
public boolean htmlPresent(String html)
html - Lower case representation of HTML string that should not be presentpublic boolean htmlNotPresent(String html)
html - Lower case representation of HTML string that should not be present
public boolean elementHasText(String locator,
String text)
locator - Locator given in standard selenium syntaxtext - The text that the element designated by the locator should contain
public boolean elementHasText(PageElement element,
String text)
public boolean elementDoesntHaveText(String locator,
String text)
locator - Locator given in standard selenium syntaxtext - The text that the element designated by the locator should not contain
public boolean elementDoesntHaveText(PageElement element,
String text)
public boolean attributeContainsValue(String locator,
String attribute,
String value)
locator - Locator given in standard selenium syntaxattribute - The element attributevalue - The value expected to be found in the element's attribute
public boolean attributeContainsValue(PageElement element,
String attribute,
String value)
public boolean attributeDoesntContainValue(String locator,
String attribute,
String value)
locator - Locator given in standard selenium syntaxattribute - The element attributevalue - The value expected to be found in the element's attribute
public boolean attributeDoesntContainValue(PageElement element,
String attribute,
String value)
public boolean linkPresentWithText(String text)
text - The text that a link on the page should containalsopublic boolean linkNotPresentWithText(String text)
text - The text that no link on the page should containpublic boolean linkVisibleWithText(String text)
text - The text that a link on the page should contain
public boolean elementsVerticallyAligned(String locator1,
String locator2,
int deltaPixels)
locator1 - Locator for element 1 given in standard selenium syntaxlocator2 - Locator for element 2 given in standard selenium syntaxdeltaPixels - The maximum allowable distance between the two element
public boolean elementsVerticallyAligned(PageElement element1,
PageElement element2,
int deltaPixels)
public boolean elementsSameHeight(String locator1,
String locator2,
int deltaPixels)
public boolean elementsSameHeight(PageElement element1,
PageElement element2,
int deltaPixels)
public boolean elementContainsText(String locator,
String text)
public boolean elementContainsText(PageElement element,
String text)
public boolean elementDoesNotContainText(String locator,
String text)
public boolean elementDoesNotContainText(PageElement element,
String text)
public boolean windowClosed(String windowName)
public boolean windowOpen(String windowName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||