Package core.helpers.click
Class ClickHelperJs
java.lang.Object
core.helpers.Element
core.helpers.click.ClickHelperJs
public class ClickHelperJs extends Element
-
Nested Class Summary
Nested classes/interfaces inherited from class core.helpers.Element
Element.LocatorType -
Constructor Summary
Constructors Constructor Description ClickHelperJs() -
Method Summary
Modifier and Type Method Description voidclickAndExpect(EnhancedBy target, int index, EnhancedBy expected)clicks element based on index And waits for expected element to be displayedvoidclickAndExpect(EnhancedBy target, int index, EnhancedBy expected, boolean mobileRefresh)clicks element based on index And waits for expected element to be displayedvoidclickAndExpect(EnhancedBy target, int index, EnhancedBy expected1, EnhancedBy expected2)click And expect for either elementvoidclickAndExpect(EnhancedBy target, EnhancedBy expected)clicks target And waits for expected element to display retries 10 timesvoidclickAndExpect(EnhancedBy target, EnhancedBy expected, boolean mobileRefresh)voidclickAndExpect(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 displayvoidclickAndExpectByText(EnhancedBy target, String text, EnhancedBy expected)click And expect based on the text value on the element.voidclickAndNotExpect(EnhancedBy target, int index, EnhancedBy expected)clicks target And waits for expected to not be displayed retries 10 timesvoidclickAndNotExpect(EnhancedBy target, EnhancedBy expected)voidclickAndWait(EnhancedBy target, double timeInSeconds)clicks target And waits for secondsvoidclickAndWait(EnhancedBy target, int index, double timeInSeconds)clicks target And waits for secondsvoidclickElementContinsByText(EnhancedBy by, String text)click element with text containingvoidclickJs(EnhancedBy target, int index)Methods inherited from class core.helpers.Element
byAccessibility, byClass, byCss, byId, byLinkText, byName, byPartialLinkText, byTagName, byTextXpath, byXpath, byXpathContentDesc, findElements, findElements, findElements
-
Constructor Details
-
ClickHelperJs
public ClickHelperJs()
-
-
Method Details
-
clickAndExpect
clicks target And waits for expected element to display retries 10 times- Parameters:
target-expected-
-
clickAndExpect
-
clickAndExpectByText
click And expect based on the text value on the element. eg. button with "OK" text- Parameters:
target-text-expected-
-
clickAndExpect
public void clickAndExpect(EnhancedBy target, int index, EnhancedBy expected, boolean mobileRefresh)clicks element based on index And waits for expected element to be displayed- Parameters:
target-index-expected-mobileRefresh- TODO
-
clickJs
-
clickAndExpect
clicks element based on index And waits for expected element to be displayed- Parameters:
target-index-expected-
-
clickAndExpect
public void clickAndExpect(EnhancedBy target, int index, EnhancedBy expected1, EnhancedBy expected2)click And expect for either element- Parameters:
target-index-expected1-expected2-
-
clickAndExpect
clicks target And waits for expected element to show up also waits for spinner element to be removed from display- Parameters:
target-expected-spinner-
-
clickAndNotExpect
-
clickAndNotExpect
clicks target And waits for expected to not be displayed retries 10 times- Parameters:
target-expected-
-
clickAndWait
clicks target And waits for seconds- Parameters:
target-expected-
-
clickAndWait
clicks target And waits for seconds- Parameters:
target-expected-
-
clickElementContinsByText
click element with text containing- Parameters:
by-text-
-