|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.TagSupport
net.sf.jameleon.LocationAwareTagSupport
net.sf.jameleon.JameleonTagSupport
net.sf.jameleon.function.FunctionTag
net.sf.jameleon.plugin.jiffie.IEFunctionTag
public abstract class IEFunctionTag
This is the base FunctionTag for the Jiffie Plug-in. To create a custom functional point for the Jiffie Plug-in, simply create a class that extends this class. To make it functional, simply implement the FunctionTag.testBlock method.
| Nested Class Summary | |
|---|---|
class |
IEFunctionTag.TagRunnable
|
| Field Summary | |
|---|---|
protected IHTMLElementFinder |
elementFinder
Used for some helper methods to find elements. |
protected String |
frameId
The id attribute of the frame or iframe to act upon. |
protected String |
frameName
The name attribute of the frame or iframe to act upon. |
protected String |
frameSrc
The src attribute of the frame or iframe to act upon. |
protected boolean |
highlightActiveElement
Whether or not to highlight the currently active HTML element. |
protected InternetExplorer |
ie
The reference to the current instance of the Internet Explorer. |
protected IESessionTag |
session
The session within which the function tag is running |
protected boolean |
visible
Defines whether the InternetExplorer windows shall be visible or not |
protected boolean |
WAIT
Whether or not to wait for a response. |
protected IHTMLFormElement |
workingForm
The current form to do submits and value setting |
| Fields inherited from class net.sf.jameleon.function.FunctionTag |
|---|
addt, breakPoint, expectException, expectFailure, fResults, functionDelay, functionId, lastFileWritten, log, NO_DELAY, params, postcondition, precondition, st, state, tct, vpt |
| Fields inherited from class net.sf.jameleon.JameleonTagSupport |
|---|
attributes, broker, contextVars, fp, unsupportedAttributes |
| Fields inherited from class net.sf.jameleon.LocationAwareTagSupport |
|---|
columnNumber, elementTagName, lineNumber, scriptFileName |
| Fields inherited from class org.apache.commons.jelly.TagSupport |
|---|
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
|---|---|
IEFunctionTag()
|
|
| Method Summary | |
|---|---|
void |
activateBrowserWithIndex(int browserIndex)
Activates the browser that was opened the nth time. |
void |
activateBrowserWithTitle(String title)
Activates the browser with the provided title. |
void |
activateLastNewWindow()
If a new window has been opened by a tag and within the same tag you want to access that popup, you've to use this method to get it. |
void |
assertCheckboxChecked(String checkBoxName,
boolean checked)
Checks that a checkbox in the workingForm is checked or unchecked. |
void |
assertCheckboxChecked(String checkBoxName,
boolean checked,
int assertLevel)
Checks that a checkbox in the workingForm is checked or unchecked. |
void |
assertCheckboxChecked(String msg,
String checkBoxName,
boolean checked)
Checks that a checkbox in the workingForm is checked or unchecked. |
void |
assertCheckboxChecked(String msg,
String checkBoxName,
boolean checked,
int assertLevel)
Checks that a checkbox in the workingForm is checked or unchecked. |
void |
assertCheckboxWithNameAndValueChecked(String checkBoxName,
String checkBoxValue,
boolean checked)
Checks that a checkbox with a given name and value in the workingForm is checked or unchecked. |
void |
assertCheckboxWithNameAndValueChecked(String checkBoxName,
String checkBoxValue,
boolean checked,
int assertLevel)
Checks that a checkbox with a given name and value in the workingForm is checked or unchecked. |
void |
assertCheckboxWithNameAndValueChecked(String msg,
String checkBoxName,
String checkBoxValue,
boolean checked)
Checks that a checkbox with a given name and value in the workingForm is checked or unchecked. |
void |
assertCheckboxWithNameAndValueChecked(String msg,
String checkBoxName,
String checkBoxValue,
boolean checked,
int assertLevel)
Checks that a checkbox with a given name and value in the workingForm is checked or unchecked. |
void |
assertLinkPresent(String linkText)
Checks that a link with given text is present in the current html. |
void |
assertLinkPresent(String linkText,
int assertLevel)
Checks that a link with given text is present in the current html. |
void |
assertLinkPresent(String msg,
String linkText)
Checks that a link with given text is present in the current html. |
void |
assertLinkPresent(String msg,
String linkText,
int assertLevel)
Checks that a link with given text is present in the current html. |
IHTMLAnchorElement |
assertLinkWithHrefPresent(String href,
String linkText)
|
IHTMLAnchorElement |
assertLinkWithHrefPresent(String msg,
String linkText,
String href,
int assertLevel)
Checks that a link with given text is present in the current html. |
void |
assertPasswordFieldValueEquals(String fieldName,
String value)
Checks the value of the password field. |
void |
assertPasswordFieldValueEquals(String fieldName,
String value,
int assertLevel)
Checks the value of the password field. |
void |
assertPasswordFieldValueEquals(String msg,
String fieldName,
String value)
Checks the value of the password field. |
void |
assertPasswordFieldValueEquals(String msg,
String fieldName,
String value,
int assertLevel)
Checks the value of the password field. |
void |
assertRadioButtonChecked(String fieldName,
String value)
Checks that the given radio button has the provided value selected |
void |
assertRadioButtonChecked(String fieldName,
String value,
int assertLevel)
Checks that the given radio button has the provided value selected |
void |
assertRadioButtonChecked(String msg,
String fieldName,
String value)
Checks that the given radio button has the provided value selected If the test fails display the given msg |
void |
assertRadioButtonChecked(String msg,
String fieldName,
String value,
int assertLevel)
Checks that the given radio button has the provided value selected If the test fails display the given msg |
void |
assertSelectFieldOptionIndexEquals(String fieldName,
int index)
Checks that the given select field has the provided index selected |
void |
assertSelectFieldOptionIndexEquals(String fieldName,
int index,
int assertLevel)
Checks that the given select field has the provided index selected |
void |
assertSelectFieldOptionIndexEquals(String msg,
String fieldName,
int index)
Checks that the given select field has the provided index selected If the test fails display the given msg |
void |
assertSelectFieldOptionIndexEquals(String msg,
String fieldName,
int index,
int assertLevel)
Checks that the given select field has the provided index selected If the test fails display the given msg |
void |
assertSelectFieldOptionIndexesEqual(String fieldName,
int[] indexes)
Checks that the given select field has the provided indexes selected |
void |
assertSelectFieldOptionIndexesEqual(String fieldName,
int[] indexes,
int assertLevel)
Checks that the given select field has the provided indexes selected |
void |
assertSelectFieldOptionIndexesEqual(String msg,
String fieldName,
int[] indexes)
Checks that the given select field has the provided index selected If the test fails display the given msg |
void |
assertSelectFieldOptionIndexesEqual(String msg,
String fieldName,
int[] indexes,
int assertLevel)
Checks that the given select field has the provided index selected If the test fails display the given msg |
void |
assertSelectFieldOptionTextEquals(String fieldName,
String textValue)
Checks that the given select field has the provided displayed text value selected |
void |
assertSelectFieldOptionTextEquals(String fieldName,
String textValue,
int assertLevel)
Checks that the given select field has the provided displayed text value selected |
void |
assertSelectFieldOptionTextEquals(String msg,
String fieldName,
String textValue)
Checks that the given select field has the provided displayed text value selected If the test fails display the given msg |
void |
assertSelectFieldOptionTextEquals(String msg,
String fieldName,
String textValue,
int assertLevel)
Checks that the given select field has the provided displayed text value selected If the test fails display the given msg |
void |
assertSelectFieldOptionTextValuesEqual(String fieldName,
List textValues)
Checks that the given select field has the provided displayed text values selected |
void |
assertSelectFieldOptionTextValuesEqual(String fieldName,
List textValues,
int assertLevel)
Checks that the given select field has the provided displayed text values selected |
void |
assertSelectFieldOptionTextValuesEqual(String msg,
String fieldName,
List textValues)
Checks that the given select field has the provided displayed text values selected If the test fails display the given msg |
void |
assertSelectFieldOptionTextValuesEqual(String msg,
String fieldName,
List textValues,
int assertLevel)
Checks that the given select field has the provided displayed text values selected If the test fails display the given msg |
void |
assertSelectFieldOptionValueEquals(String fieldName,
String value)
Checks that the given select field has the provided value selected |
void |
assertSelectFieldOptionValueEquals(String fieldName,
String value,
int assertLevel)
Checks that the given select field has the provided value selected |
void |
assertSelectFieldOptionValueEquals(String msg,
String fieldName,
String value)
Checks that the given select field has the provided value selected If the test fails display the given msg |
void |
assertSelectFieldOptionValueEquals(String msg,
String fieldName,
String value,
int assertLevel)
Checks that the given select field has the provided value selected If the test fails display the given msg |
void |
assertSelectFieldOptionValuesEqual(String fieldName,
List values)
Checks that the given select field has the provided values selected |
void |
assertSelectFieldOptionValuesEqual(String fieldName,
List values,
int assertLevel)
Checks that the given select field has the provided values selected |
void |
assertSelectFieldOptionValuesEqual(String msg,
String fieldName,
List values)
Checks that the given select field has the provided values selected If the test fails display the given msg |
void |
assertSelectFieldOptionValuesEqual(String msg,
String fieldName,
List values,
int assertLevel)
Checks that the given select field has the provided values selected If the test fails display the given msg |
void |
assertTextAreaValueEquals(String fieldName,
String value)
Checks the value of the text area. |
void |
assertTextAreaValueEquals(String fieldName,
String value,
int assertLevel)
Checks the value of the text area. |
void |
assertTextAreaValueEquals(String msg,
String fieldName,
String value)
Checks the value of the text area. |
void |
assertTextAreaValueEquals(String msg,
String fieldName,
String value,
int assertLevel)
Checks the value of the text area. |
void |
assertTextFieldValueEquals(String fieldName,
String value)
Checks the value of the text field. |
void |
assertTextFieldValueEquals(String fieldName,
String value,
int assertLevel)
Checks the value of the text field. |
void |
assertTextFieldValueEquals(String msg,
String fieldName,
String value)
Checks the value of the text field. |
void |
assertTextFieldValueEquals(String msg,
String fieldName,
String value,
int assertLevel)
Checks the value of the text field. |
void |
assertTextNotPresent(String text)
Asserts that the supplied text is not present in the reponse. |
void |
assertTextNotPresent(String text,
int assertLevel)
Asserts that the supplied text is not present in the reponse. |
void |
assertTextNotPresent(String msg,
String text)
Asserts that the supplied text is not present in the reponse. |
void |
assertTextNotPresent(String msg,
String text,
int assertLevel)
Asserts that the supplied text is not present in the reponse. |
void |
assertTextPresent(String text)
Asserts that supplied text is present. |
void |
assertTextPresent(String text,
boolean regex)
Asserts that supplied text is present and if regex is set to true,
then text is a Perl5 style regular expression (evaluated using jakarta ORO package). |
void |
assertTextPresent(String text,
int assertLevel)
Asserts that supplied text is present. |
void |
assertTextPresent(String msg,
String text)
Asserts that supplied text is present. |
void |
assertTextPresent(String msg,
String text,
int assertLevel)
Asserts that supplied text is present. |
void |
assertTitleEquals(String title)
Checks that the title of the current html page matches the expected value, title
Leading and trailing whitespace is not to be included in the compare. |
void |
assertTitleEquals(String title,
boolean trimWhitespace)
Checks that the title of the current html page matches the expected value, title |
void |
assertTitleEquals(String title,
int assertLevel,
boolean trimWhitespace)
Checks that the title of the current html page matches the expected value, title |
void |
assertTitleEquals(String msg,
String title)
Checks that the title of the current html page matches the expected value, title
Leading and trailing whitespace is not to be included in the compare. |
void |
assertTitleEquals(String msg,
String title,
boolean trimWhitespace)
Checks that the title of the current html page matches the expected value, title
If the test fails display the given message |
void |
assertTitleEquals(String msg,
String title,
int assertLevel)
Checks that the title of the current html page matches the expected value, title
If the test fails display the given message |
void |
assertTitleEquals(String msg,
String title,
int assertLevel,
boolean trimWhitespace)
Checks that the title of the current html page matches the expected value, title
If the test fails display the given message |
void |
assertTitleNotEquals(String title)
Checks that the title of the current html page does not matche the expected value, title |
void |
assertTitleNotEquals(String title,
int assertLevel)
Checks that the title of the current html page does not matche the expected value, title |
void |
assertTitleNotEquals(String msg,
String title)
Checks that the title of the current html page does not matche the expected value, title
If the test fails display the given message |
void |
assertTitleNotEquals(String msg,
String title,
int assertLevel)
Checks that the title of the current html page does not matche the expected value, title
If the test fails display the given message |
void |
assertXPath(String xpath2evaluate)
Validates that a given XPATH returns at least one result |
void |
assertXPathResultsSizeEquals(String xpath2evaluate,
int numOfResults)
Validates that a given XPATH returns a provided number of results |
void |
assertXPathResultsSizeEquals(String msg,
String xpath2evaluate,
int numOfResults)
Validates that a given XPATH returns a provided number of results |
void |
clearSelectFieldValues(IHTMLSelectElement selectField)
Clears the currently selected options of the provided select field |
void |
clickIHTMLElement(IHTMLElement element)
Clicks on an IHTMLElement by using the jiffie provided BlockingClickThread. |
void |
clickImageLinkWithAltText(String altText)
Navigate by selection of a link with a given alt text. |
void |
clickLink(IHTMLAnchorElement anchor,
boolean ignoreTarget)
|
void |
clickLink(String link)
Finds a link via the getLink(java.lang.String) method and clicks on it. |
void |
clickLink(String link,
boolean ignoreTarget)
Finds a link via the getLink(java.lang.String) method and clicks on it. |
void |
clickLinkWithHref(String href,
String link)
Finds a link via the getLinkWithHref(java.lang.String, java.lang.String) method and clicks on it. |
void |
clickLinkWithId(String linkId)
Navigate by selection of a link with given id. |
void |
clickLinkWithImageSrc(String src)
Navigate by selection of a link with a given src. |
void |
clickLinkWithText(String linkText)
Navigate by selection of a link containing the given text. |
void |
clickSubmitButtonWithName(String submitButtonName)
Clicks on the submit button in the current working form with the provided name |
void |
closeBrowserWindow()
Closes the current Internet Explorer window by sending a quit event to it. |
void |
closeBrowserWindow(long timeInMillis)
Closes the current Internet Explorer window by sending a quit event to it. |
void |
fireEvent(IHTMLElement element,
String eventToFire)
Fires a an event against the provided HTML element |
IHTMLElement |
getAreaElementByAltText(String altText)
Gets the area HTML tag with the given alt text |
IHTMLDOMNode |
getByXPath(String xpath2evaluate)
This method returns the IHTMLDOMNode identified by the given xpath. |
IHTMLInputElement |
getCheckbox(String checkboxFieldName)
Gets the checkbox given by it's field name |
IHTMLInputElement |
getCheckboxWithNameAndValue(String name,
String value)
Gets the checkbox given by it's field name and value |
IHTMLDocument2 |
getDocument()
|
IHTMLElement |
getElementByXPath(String xpath2evaluate)
|
List |
getElementsByXPath(String xpath2evaluate)
|
IHTMLFormElement |
getForm(String formInfo)
Tries to get a form via the following methods in order. |
IHTMLFormElement |
getFormWithId(String id)
Tries to get a form with the id attribute provided |
IHTMLFormElement |
getFormWithIndex(int index)
Tries to get the nth form on the page. |
IHTMLFormElement |
getFormWithName(String name)
Tries to get a form with the name attribute provided |
IHTMLFormElement |
getFormWithXPath(String xpath)
|
IHTMLFrameBase2 |
getFrameWithId(String frameId)
Gets a frame by the id attribute |
IHTMLFrameBase2 |
getFrameWithName(String frameName)
Gets a frame by the name attribute |
IHTMLFrameBase2 |
getFrameWithSrc(String frameSrc)
Gets a frame by the src attribute |
IHTMLInputElement |
getHiddenField(String fieldName)
Gets the hidden field by the name provided |
String |
getHTMLSource()
Gets the HTML source from the current page. |
IHTMLElement |
getIHTMLElement(ElementContainer container,
String htmlTag,
String[] attributeNames,
String[] attributeValues)
Gets the first matching IHTMLElement with the given html tag, attributes and attribute values |
IHTMLElement |
getIHTMLElement(ElementContainer container,
String htmlTag,
String attributeName,
String attributeValue)
Gets the first matching IHTMLElement with the given html tag, attribute and attribute value |
IHTMLElement |
getIHTMLElement(String htmlTag,
String[] attributeNames,
String[] attributeValues)
Gets the first matching IHTMLElement with the given html tag, attributes and attribute values |
IHTMLElement |
getIHTMLElement(String htmlTag,
String attributeName,
String attributeValue)
Gets the first matching IHTMLElement with the given html tag, attribute and attribute value |
List |
getIHTMLElements(ElementContainer container,
String htmlTag,
String[] attributeNames,
String[] attributeValues)
Gets a List of matching IHTMLElements with the given html tag, attributes and attribute values |
List |
getIHTMLElements(ElementContainer container,
String htmlTag,
String attributeName,
String attributeValue)
Gets a List of matching IHTMLElements with the given html tag, attribute and attribute value |
List |
getIHTMLElements(String htmlTag,
String[] attributeNames,
String[] attributeValues)
Gets a List of matching IHTMLElements with the given html tag, attributes and attribute values |
List |
getIHTMLElements(String htmlTag,
String attributeName,
String attributeValue)
Gets a List of matching IHTMLElements with the given html tag, attribute and attribute value |
IHTMLAnchorElement |
getImageLinkWithAltText(String text)
Helper method to find a link with given img alt text |
IHTMLInputElement |
getInputFieldByName(String inputFieldName)
Gets an input field by name. |
IHTMLAnchorElement |
getLink(String text)
Tries to get a link via the following methods in order. |
List |
getLinksWith(String text)
Helper method to find all links with the contained text |
IHTMLAnchorElement |
getLinkWith(String text)
Helper method to find a link with contained text |
IHTMLAnchorElement |
getLinkWithHref(String href,
String text)
Helper method to find a link with the given regex contained in the href attribute. |
IHTMLAnchorElement |
getLinkWithID(String id)
Helper method to find a link with given id |
IHTMLAnchorElement |
getLinkWithImageSrc(String src)
Helper method to find a link with given img src attribute |
IHTMLAnchorElement |
getLinkWithName(String name)
Helper method to find a link with given name |
IHTMLInputElement |
getPasswordField(String passwordFieldName)
Gets the text field given by it's field name |
IHTMLInputElement |
getRadioButton(String radioButtonName,
String value)
Gets the radio button with the specified name and value |
IHTMLOptionElement |
getSelectedOptionField(String selectFieldName)
Gets the currently selected option |