public class ClickHelperAction extends Element
Element.LocatorType| Constructor and Description |
|---|
ClickHelperAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
clickAction(EnhancedBy target,
int index)
click using actions
|
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 |
clickAndExpectByText(EnhancedBy target,
String text,
EnhancedBy expected)
click And expect based on the text value on the element.
|
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 |
doubleClick(EnhancedBy target,
int index)
double click on element
|
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 |
rightClick(EnhancedBy target,
int index)
right click on element at index
|
void |
rightClick(int x,
int y)
right click on x, y points
|
byAccessibility, byClass, byCss, byId, byLinkText, byName, byPartialLinkText, byTagName, 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 clickAndExpect(EnhancedBy target, int index, EnhancedBy expected, boolean mobileRefresh)
target - index - expected - mobileRefresh - TODOpublic void clickAction(EnhancedBy target, int index)
target - index - 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 doubleClickPoints(int x,
int y)
x - y - public void doubleClick(EnhancedBy target, int index)
target - index - public void rightClick(EnhancedBy target, int index)
target - index - public void rightClick(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 © 2022. All rights reserved.