Package | Description |
---|---|
com.workfusion.rpa.helpers |
Modifier and Type | Method and Description |
---|---|
static UiElement |
RPA.$(org.openqa.selenium.By seleniumSelector)
Finds the first element matching given descriptor
|
UiElement |
UiElement.$(org.openqa.selenium.By selector)
Driver Type: Desktop, Web
|
static UiElement |
RPA.$(org.openqa.selenium.By seleniumSelector,
int index)
Driver Type: Desktop, Web
|
UiElement |
UiElement.$(org.openqa.selenium.By selector,
int index)
Driver Type: Desktop, Web
|
static UiElement |
RPA.$(String cssSelector)
Finds the first element matching given CSS selector
|
UiElement |
UiElement.$(String cssSelector)
Driver Type: Desktop, Web
|
static UiElement |
RPA.$(String cssSelector,
int index)
Finds the Nth element matching given criteria
|
UiElement |
UiElement.$(String cssSelector,
int index)
Driver Type: Desktop, Web
|
static UiElement |
RPA.$(org.openqa.selenium.WebElement webElement)
Wraps standard Selenium WebElement into UiElement
to use additional methods like shouldHave(), selectOption(), etc.
|
UiElement |
UiElement.append(Object text)
Append given text to the text field.
|
UiElement |
UiElement.click(int clicks)
Click the element number of times
|
UiElement |
UiElement.click(int clicks,
int offsetX,
int offsetY)
Click the element number of times
|
UiElement |
UiElement.closest(String tagOrClass)
Find closes ancestor element matching given criteria.
|
UiElement |
UiElement.contextClick()
Click with right mouse button on this element
|
UiElement |
UiElement.contextClick(int offsetX,
int offsetY)
Click with right mouse button by offset on this element
|
UiElement |
UiElement.doubleClick()
Double click the element
|
UiElement |
UiElement.doubleClick(int offsetX,
int offsetY)
Double click the element
|
UiElement |
UiElement.find(org.openqa.selenium.By selector)
Find the first matching element inside given element
|
UiElement |
UiElement.find(org.openqa.selenium.By selector,
int index)
Find the Nth matching element inside given element
|
UiElement |
UiElement.find(String cssSelector)
Find the first matching element inside given element
|
UiElement |
UiElement.find(String cssSelector,
int index)
Find the Nth matching element inside given element
|
UiElement |
UiElementCollection.find(UiCondition condition)
Find the first element which met the given condition
|
UiElement |
UiElementCollection.findBy(UiCondition condition)
Find the first element which met the given condition
|
UiElement |
UiElementCollection.first() |
UiElement |
UiElementCollection.get(int index) |
static UiElement |
RPA.getElement(org.openqa.selenium.By criteria)
Finds the first element matching given criteria
|
static UiElement |
RPA.getElement(org.openqa.selenium.By criteria,
int index)
Finds the Nth element matching given criteria
|
static UiElement |
RPA.getFocusedElement()
Returns the currently focused UiElement,
that is, the element that will get keystroke events if the user types any.
|
UiElement |
UiElement.getSelectedOption()
Find selected option from this select field
|
UiElement |
UiElement.hover()
Emulate "mouseOver" event.
|
UiElement |
UiElementCollection.last() |
UiElement |
UiElement.parent()
Get parent element of this element
For example, $("td").parent() could give some "tr".
|
UiElement |
UiElement.pressBackSpace()
Press BACK_SPACE.
|
UiElement |
UiElement.pressCtrlA()
Send CTRL+A.
|
UiElement |
UiElement.pressCtrlC()
Send CTRL+C.
|
UiElement |
UiElement.pressCtrlShiftZ()
Send CTRL+SHIFT+Z.
|
UiElement |
UiElement.pressCtrlV()
Send CTRL+V.
|
UiElement |
UiElement.pressCtrlX()
Send CTRL+X.
|
UiElement |
UiElement.pressCtrlZ()
Send CTRL+Z.
|
UiElement |
UiElement.pressEnter()
Press ENTER.
|
UiElement |
UiElement.pressEscape()
Press ESCAPE.
|
UiElement |
UiElement.pressSpace()
Press SPACE.
|
UiElement |
UiElement.pressTab()
Press TAB.
|
UiElement |
UiElement.scrollDown(int times)
Moves mouse cursor to the center of element and scrolls down number of times.
|
UiElement |
UiElement.scrollTo()
Ask browser to scroll to this element
|
UiElement |
UiElement.scrollUp(int times)
Moves mouse cursor to the center of element and scrolls up number of times.
|
UiElement |
UiElement.selectOption(int index)
Select an option from dropdown list (by index)
|
UiElement |
UiElement.selectOption(String text)
Select an option from dropdown list (by text)
|
UiElement |
UiElement.selectOptionByValue(String value)
Select an option from dropdown list (by value)
|
UiElement |
UiElement.sendKeys(Object text) |
UiElement |
UiElement.setSelected(boolean selected)
Set checkbox/radio state to CHECKED or UNCHECKED.
|
UiElement |
UiElement.setText(Object text)
Sets given text to a text field
|
UiElement |
UiElement.setValue(Object text)
Clear the text field and enter given text.
|
UiElement |
UiElement.should(UiCondition... conditions) |
UiElement |
UiElement.should(UiCondition condition)
Checks that given element meets all of given conditions.
|
UiElement |
UiElement.should(UiCondition condition1,
UiCondition condition2) |
UiElement |
UiElement.shouldBe(UiCondition... conditions)
Synonym for
should(UiCondition...) }. |
UiElement |
UiElement.shouldBe(UiCondition condition) |
UiElement |
UiElement.shouldHave(UiCondition... conditions)
Synonym for
should(UiCondition...) }. |
UiElement |
UiElement.shouldHave(UiCondition condition) |
UiElement |
UiElement.shouldNot(UiCondition... conditions)
Checks that given element does not meet given conditions.
|
UiElement |
UiElement.shouldNot(UiCondition condition) |
UiElement |
UiElement.shouldNotBe(UiCondition... conditions)
Synonym for
shouldNot(UiCondition...) . |
UiElement |
UiElement.shouldNotBe(UiCondition condition) |
UiElement |
UiElement.shouldNotHave(UiCondition... conditions)
Synonym for
shouldNot(UiCondition...) . |
UiElement |
UiElement.shouldNotHave(UiCondition condition) |
UiElement |
UiElement.singleClick()
Single click the element.
|
UiElement |
UiElement.singleClick(int offsetX,
int offsetY)
Single click the element.
|
UiElement |
UiElement.text(Object text)
Driver Type: Desktop, Web
|
UiElement |
UiElement.tripleClick()
Triple click the element
|
UiElement |
UiElement.tripleClick(int offsetX,
int offsetY)
Triple click the element
|
UiElement |
UiElement.val(Object text)
Driver Type: Desktop, Web
|
UiElement |
UiElement.waitUntil(UiCondition condition)
Wait until given element meets given conditions.
|
UiElement |
UiElement.waitUntil(UiCondition condition,
long timeoutMilliseconds)
Wait until given element meets given conditions.
|
UiElement |
UiElement.waitUntil(UiCondition condition,
long timeoutMilliseconds,
long pollingIntervalMilliseconds)
Wait until given element meets given conditions.
|
UiElement |
UiElement.waitWhile(UiCondition condition)
Wait while given element meets given conditions.
|
UiElement |
UiElement.waitWhile(UiCondition condition,
long timeoutMilliseconds)
Wait while given element meets given conditions.
|
UiElement |
UiElement.waitWhile(UiCondition condition,
long timeoutMilliseconds,
long pollingIntervalMilliseconds)
Wait while given element meets given conditions.
|
UiElement |
UiElement.wheelClick()
Wheel click on the element
|
UiElement |
UiElement.wheelClick(int offsetX,
int offsetY)
Wheel click on the element
|
Modifier and Type | Method and Description |
---|---|
Iterator<UiElement> |
UiElementCollection.iterator() |
ListIterator<UiElement> |
UiElementCollection.listIterator() |
ListIterator<UiElement> |
UiElementCollection.listIterator(int index) |
Copyright 2016, WorkFusion, Inc.