public class ClickHelper extends Element
Element.LocatorType| Constructor and Description |
|---|
ClickHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
clickAndExpect(EnhancedBy target,
EnhancedBy expected)
clicks target And waits for expected element to display retries 10 times
|
void |
clickAndExpect(EnhancedBy target,
EnhancedBy expected,
boolean mobileRefresh) |
void |
clickAndExpect(EnhancedBy target,
EnhancedBy expected,
EnhancedBy spinner)
clicks target And waits for expected element to show up also waits for
spinner element to be removed from display
|
void |
clickAndExpect(EnhancedBy target,
int index,
EnhancedBy expected)
clicks element based on index And waits for expected element to be displayed
|
void |
clickAndExpect(EnhancedBy target,
int index,
EnhancedBy expected,
boolean mobileRefresh)
clicks element based on index And waits for expected element to be displayed
|
void |
clickAndExpect(EnhancedBy target,
int index,
EnhancedBy expected1,
EnhancedBy expected2)
click And expect for either element
|
void |
clickAndExpectByAction(EnhancedBy target,
EnhancedBy expected)
click And expect using action click
|
void |
clickAndExpectByAction(EnhancedBy target,
int index,
EnhancedBy expected)
click And expect using action click
|
void |
clickAndExpectByText(EnhancedBy target,
String text,
EnhancedBy expected)
click And expect based on the text value on the element.
|
void |
clickAndExpectContainsByText(EnhancedBy target,
String text,
EnhancedBy expected)
click And expect based on the text value on the element.
|
void |
clickAndExpectNoRetry(EnhancedBy target,
int index,
EnhancedBy expected)
click and expect with retrying to click the elmeent on failure
|
void |
clickAndHold(EnhancedBy target,
double seconds)
click And hold element
|
void |
clickAndHold(EnhancedBy target,
int index,
double seconds)
click And hold based on element index
|
void |
clickAndNotExpect(EnhancedBy target,
EnhancedBy expected) |
void |
clickAndNotExpect(EnhancedBy target,
int index,
EnhancedBy expected)
clicks target And waits for expected to not be displayed retries 10 times
|
void |
clickAndWait(EnhancedBy target,
double timeInSeconds)
clicks target And waits for seconds
|
void |
clickAndWait(EnhancedBy target,
int index,
double timeInSeconds)
clicks target And waits for seconds
|
void |
clickElementContinsByText(EnhancedBy by,
String text)
click element with text containing
|
void |
clickElementLocationBy(EnhancedBy by,
int x,
int y)
Click on an element's specific x,y location
|
void |
clickPoints(int x,
int y)
click at position x, y
|
void |
clickPointsAndExpect(int x,
int y,
EnhancedBy expected)
click point at x,y coordinates and expect and element to be present
retry every 5 seconds for duration of explicit timeout
|
void |
doubleClickPoints(int x,
int y)
double click at position
|
void |
dragAndDrop(EnhancedBy src,
EnhancedBy target)
drag And drop from src element to target element
|
void |
dragAndDrop(EnhancedBy src,
int xOffset,
int yOffset)
drag And drop from src element to target element
|
void |
resetMouse(int x,
int y)
moves mouse back to original position
|
byAccessibility, byClass, byCss, byId, byName, byTextXpath, byXpath, byXpathContentDesc, findElements, findElements, findElementspublic void clickAndExpect(EnhancedBy target, EnhancedBy expected)
target - expected - public void clickAndExpect(EnhancedBy target, EnhancedBy expected, boolean mobileRefresh)
public void clickAndExpectByText(EnhancedBy target, String text, EnhancedBy expected)
target - text - expected - public void clickAndExpectContainsByText(EnhancedBy target, String text, EnhancedBy expected)
target - text - expected - public void clickAndExpect(EnhancedBy target, int index, EnhancedBy expected, boolean mobileRefresh)
target - index - expected - mobileRefresh - TODOpublic void clickAndExpectNoRetry(EnhancedBy target, int index, EnhancedBy expected)
target - index - expected - public void clickAndExpectByAction(EnhancedBy target, EnhancedBy expected)
target - expected - public void clickAndExpectByAction(EnhancedBy target, int index, EnhancedBy expected)
target - index - expected - public void clickAndExpect(EnhancedBy target, int index, EnhancedBy expected)
target - index - expected - public void clickAndExpect(EnhancedBy target, int index, EnhancedBy expected1, EnhancedBy expected2)
target - index - expected1 - expected2 - public void clickAndExpect(EnhancedBy target, EnhancedBy expected, EnhancedBy spinner)
target - expected - spinner - public void clickAndNotExpect(EnhancedBy target, EnhancedBy expected)
public void clickAndNotExpect(EnhancedBy target, int index, EnhancedBy expected)
target - expected - public void clickAndWait(EnhancedBy target, double timeInSeconds)
target - expected - public void clickAndWait(EnhancedBy target, int index, double timeInSeconds)
target - expected - public void clickElementLocationBy(EnhancedBy by, int x, int y)
by - by elementx - x offset coordinatey - y offset coordinatepublic void clickPoints(int x,
int y)
x - y - public void clickPointsAndExpect(int x,
int y,
EnhancedBy expected)
x - y - expected - public void resetMouse(int x,
int y)
x - y - public void doubleClickPoints(int x,
int y)
x - y - public void clickElementContinsByText(EnhancedBy by, String text)
by - text - public void clickAndHold(EnhancedBy target, double seconds)
target - seconds - public void clickAndHold(EnhancedBy target, int index, double seconds)
target - index - seconds - public void dragAndDrop(EnhancedBy src, EnhancedBy target)
src - target - public void dragAndDrop(EnhancedBy src, int xOffset, int yOffset)
src - target - Copyright © 2019. All rights reserved.