|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ExecutionException | |
---|---|
net.sf.sahi.client |
Uses of ExecutionException in net.sf.sahi.client |
---|
Methods in net.sf.sahi.client that throw ExecutionException | |
---|---|
void |
ElementStub.blur()
|
void |
ElementStub.check()
Checks this element (applicable to checkboxes and radio buttons). Internally calls browser.check(this); |
void |
Browser.check(ElementStub element)
Checks the given checkbox or radio only if it is unchecked. |
boolean |
ElementStub.checked()
Returns true if the element is checked. |
boolean |
Browser.checked(ElementStub el)
Returns true if the element is checked. |
void |
Browser.choose(ElementStub elementStub,
java.lang.String[] values,
boolean append)
Chooses the given options in a multi select box (<select> tag). |
void |
Browser.choose(ElementStub elementStub,
java.lang.String value,
boolean append)
Chooses the given option in a select box (<select> tag). |
void |
ElementStub.choose(java.lang.String value)
Sets the value of a select element; Will unselect previously selected option(s). This method will do nothing for elements which are not select fields. Internally calls browser.choose(this, value, false); |
void |
ElementStub.choose(java.lang.String[] values)
Selects multiple options of a select element; Will unselect previously selected option(s). This method will do nothing for elements which are not select fields. Internally calls browser.choose(this, values, false); |
void |
ElementStub.choose(java.lang.String[] values,
boolean append)
Selects multiple options of a select element; Will not unselect previously selected option(s) if append is true. This method will do nothing for elements which are not select fields. Internally calls browser.choose(this, values, append); |
void |
ElementStub.choose(java.lang.String value,
boolean append)
Sets the value of a select element; Will not unselect previously selected option(s) if append is true. This method will do nothing for elements which are not select fields. Internally calls browser.choose(this, values, append); |
void |
Browser.clearLastAlert()
Clears the lastAlert message |
void |
Browser.clearLastConfirm()
Clears the lastConfirm message |
void |
Browser.clearLastPrompt()
Clears the lastPrompt message |
void |
ElementStub.click()
Performs a click on this element. Internally calls browser.click(this); |
void |
Browser.click(ElementStub element)
Clicks the given element |
void |
ElementStub.doubleClick()
Performs a double click on this element. Internally calls browser.doubleClick(this); |
void |
Browser.doubleClick(ElementStub element)
Double clicks the given element |
void |
ElementStub.dragAndDropOn(ElementStub dropElement)
Drags the element and drops it on another element. |
void |
ElementStub.dragAndDropOn(int x,
int y)
Drags the element and drops it at the given x, y coordinate. |
void |
Browser.dragDrop(ElementStub dragElement,
ElementStub dropElement)
Simulates a drag and drop event |
void |
Browser.dragDropXY(ElementStub dragElement,
int x,
int y)
Simulates a drag and drop event |
void |
Browser.execute(java.lang.String step)
Executes any javascript on the browser. |
void |
Browser.executeSahi(java.lang.String step)
Executes any sahi code and javascript on the browser. |
void |
Browser.executeStep(java.lang.String step)
|
void |
Browser.executeStep(java.lang.String step,
boolean addSahi)
|
void |
Browser.expectConfirm(java.lang.String message,
boolean input)
Sets the input value of a confirm dialog with given message. This needs to be set before a confirm is expected. Prompts are generated in javascript via window.confirm(message) |
void |
Browser.expectPrompt(java.lang.String message,
java.lang.String input)
Sets the input value of a prompt dialog with given message. This needs to be set before a prompt is expected. Prompts are generated in javascript via window.prompt(message) |
java.lang.String |
ElementStub.fetch()
|
java.lang.String |
Browser.fetch(ElementStub el)
Fetches the string value of an element stub by performing an eval on the browser |
java.lang.String |
Browser.fetch(java.lang.String expression)
Fetches the value of any DOM property |
java.lang.String |
ElementStub.fetch(java.lang.String string)
Fetches the string value of a property of this element. Eg. browser.div("content").fetch("innerHTML") |
void |
ElementStub.focus()
Brings focus on the element. |
void |
Browser.focus(ElementStub element)
Brings focus on the element. |
java.lang.String |
Browser.getAttribute(ElementStub el,
java.lang.String attribute)
|
java.lang.String |
ElementStub.getAttribute(java.lang.String attribute)
|
java.lang.String |
ElementStub.getSelectedText()
Returns the selected text visible in a select box (<select> tag). Same as selectedText(). Internally calls browser.getSelectedText(this); |
java.lang.String |
Browser.getSelectedText(ElementStub el)
Returns the selected text visible in a select box (<select> tag) |
java.lang.String |
ElementStub.getText()
Returns the inner text of an element. same as text(). Internally calls browser.getText(this); |
java.lang.String |
Browser.getText(ElementStub el)
Returns the inner text of given element from the browser |
java.lang.String |
ElementStub.getValue()
Fetches the value of a form field from the browser. Same as value(). Internally calls browser.getValue(this) |
java.lang.String |
Browser.getValue(ElementStub el)
Returns the value of given form element from the browser |
void |
ElementStub.highlight()
Highlights this element. Internally calls browser.highlight(this); |
void |
Browser.highlight(ElementStub element)
Highlights the given element |
void |
ElementStub.hover()
Performs a mouseover on this element. Same as mouseOver(). Internally calls browser.mouseOver(this); |
boolean |
ElementStub.isVisible()
Checks for visibility of this element. If an element is hidden via style display attribute set to "none" or if the element is hidden via style visibility attribute set to "hidden", isVisible() returns false. |
boolean |
ElementStub.isVisible(boolean optimistic)
Checks for visibility of this element. If an element is hidden via style display attribute set to "none" or if the element is hidden via style visibility attribute set to "hidden", isVisible() returns false. |
boolean |
Browser.isVisible(ElementStub el)
Returns true if the element is visible on the browser |
boolean |
Browser.isVisible(ElementStub el,
boolean optimistic)
Returns true if the element is visible on the browser Retries a few times if optimistic is false. |
void |
Browser.keyDown(ElementStub elementStub,
java.lang.String keySequence)
Simulates a key down event on the given element with a combo value ie. |
void |
Browser.keyDown(ElementStub elementStub,
java.lang.String keySequence,
java.lang.String combo)
Simulates a key down event on the given element with a combo value ie. |
void |
Browser.keyPress(ElementStub elementStub,
java.lang.String keySequence)
Simulates a key press event on the given element. |
void |
Browser.keyPress(ElementStub elementStub,
java.lang.String keySequence,
java.lang.String combo)
Simulates a key press event on the given element with a combo value ie. |
java.lang.String |
Browser.lastAlert()
Returns the last alert message from browser Alert messages are generated via window.alert(message) in javascript. |
java.lang.String |
Browser.lastConfirm()
Returns the last confirm message from browser Confirm messages are generated via window.confirm(message) in javascript. |
java.lang.String |
Browser.lastPrompt()
Returns the last prompt message from browser Alert messages are generated via window.prompt(message) in javascript. |
void |
ElementStub.mouseDown()
Performs a mousedown on this element. Internally calls browser.mouseDown(this); |
void |
Browser.mouseDown(ElementStub element)
Simulates a mouse down on the given element |
void |
ElementStub.mouseOver()
Performs a mouseover on this element. Same as hover(). Internally calls browser.mouseOver(this); |
void |
Browser.mouseOver(ElementStub element)
Simulates a mouse over on the given element |
void |
ElementStub.mouseUp()
Performs a mouseup on this element. Internally calls browser.mouseUp(this); |
void |
Browser.mouseUp(ElementStub element)
Simulates a mouse up on the given element |
void |
Browser.navigateTo(java.lang.String url)
Navigates to the given URL |
void |
Browser.navigateTo(java.lang.String url,
boolean forceReload)
Navigates to the given URL |
void |
ElementStub.removeFocus()
Removes focus from the element. |
void |
Browser.removeFocus(ElementStub element)
Removes focus from the element. |
void |
ElementStub.rightClick()
Performs a right click on this element. Internally calls browser.rightClick(this); |
void |
Browser.rightClick(ElementStub element)
Right clicks the given element |
void |
ElementStub.rteWrite(java.lang.String value)
Writes the text into the Rich Text Editor (RTE). Internally calls browser.rteWrite(this, value); |
java.lang.String |
ElementStub.selectedText()
Returns the selected text visible in a select box (<select> tag). Same as getSelectedText(). Internally calls browser.getSelectedText(this); |
void |
Browser.selectRange(ElementStub element,
int rangeStart,
int rangeEnd)
Sahi waits for AJAX readyStates 1,2 and 3. |
void |
Browser.selectTextRange(ElementStub element,
java.lang.String searchText)
Selecting text for manipulation (like selecting text in a Rich Text Editor to change font to bold) |
void |
Browser.selectTextRange(ElementStub element,
java.lang.String searchText,
java.lang.String position)
Selecting text for manipulation (like selecting text in a Rich Text Editor to change font to bold) |
void |
Browser.setFile(ElementStub textbox,
java.lang.String value)
Sets the file to be posted to the server via a file input field. |
void |
Browser.setFile(ElementStub textbox,
java.lang.String value,
java.lang.String URL)
Sets the file to be posted to the server via a file input field. |
void |
ElementStub.setFile(java.lang.String value)
Sets the value of this file upload element. This method will do nothing for elements which are not file upload fields. Internally calls browser.setFile(this, value); |
void |
Browser.setFile2(ElementStub textbox,
java.lang.String value)
Sets the file to be posted to the server via a file input field. |
void |
Browser.setFile2(ElementStub textbox,
java.lang.String value,
java.lang.String URL)
Sets the file to be posted to the server via a file input field. |
void |
ElementStub.setFile2(java.lang.String value)
Sets the value of this file upload element. This method will do nothing for elements which are not file upload fields. Internally calls browser.setFile(this, value); |
void |
ElementStub.setFile2(java.lang.String value,
java.lang.String URL)
|
void |
Browser.setValue(ElementStub textbox,
java.lang.String value)
Sets the value in a form element |
void |
ElementStub.setValue(java.lang.String value)
Sets the value of this form element. This method will do nothing for elements which do not have a value attribute. Internally calls browser.setValue(this, value); |
abstract boolean |
BrowserCondition.test()
|
java.lang.String |
ElementStub.text()
Returns the inner text of an element. same as getText(). Internally calls browser.getText(this); |
java.lang.String |
Browser.title()
|
void |
ElementStub.uncheck()
Unchecks this element (applicable to checkboxes). Internally calls browser.uncheck(this); |
void |
Browser.uncheck(ElementStub element)
Unchecks the given checkbox only if it is checked. |
java.lang.String |
ElementStub.value()
Fetches the value of a form field from the browser. Same as getValue(). Internally calls browser.getValue(this) |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |