Package com.shaft.gui.element.internal
Class ElementActionsHelper
java.lang.Object
com.shaft.gui.element.internal.ElementActionsHelper
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeWebElementVisibilityUsingJavascript(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean desiredIsVisibleState) createReportMessage(String actionName, String testData, String elementName, Boolean passFailStatus) voidexecuteNativeMobileCommandUsingJavascript(org.openqa.selenium.WebDriver driver, String command, Map<String, String> parameters) voidfailAction(org.openqa.selenium.WebDriver driver, String actionName, String testData, org.openqa.selenium.By elementLocator, List<List<Object>> screenshots, Throwable... rootCauseException) voidfailAction(org.openqa.selenium.WebDriver driver, String testData, org.openqa.selenium.By elementLocator, Throwable... rootCauseException) voidfailAction(org.openqa.selenium.WebDriver driver, String testData, org.openqa.selenium.By elementLocator, List<List<Object>> attachments, Throwable... rootCauseException) voidfailAction(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, Throwable... rootCauseException) getElementName(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator) intgetElementsCount(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator) Returns the number of elements that match a certain elementLocatorgetMatchingElementsInformation(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean checkForVisibility) identifyUniqueElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator) identifyUniqueElementIgnoringVisibility(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator) booleanisFoundInStacktrace(Class<?> classObject, Throwable throwable) voidpassAction(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionName, String testData, List<List<Object>> screenshots, String elementName) voidpassAction(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String testData, List<Object> screenshot, String elementName) booleanperformClipboardActions(org.openqa.selenium.WebDriver driver, ClipboardAction action) reportActionResult(org.openqa.selenium.WebDriver driver, String actionName, String testData, org.openqa.selenium.By elementLocator, List<List<Object>> screenshots, String elementName, Boolean passFailStatus, Throwable... rootCauseException) scrollToFindElement(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator) voidsubmitFormUsingJavascript(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator) takeScreenshot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionName, String testData, boolean passFailStatus) waitForElementPresence(org.openqa.selenium.WebDriver driver, String elementReferenceScreenshot) waitForElementPresence(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean checkForVisibility) booleanwaitForElementTextToBeNot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String textShouldNotBe) booleanwaitForElementToBeClickable(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionToExecute)
-
Field Details
-
OBFUSCATED_STRING
- See Also:
-
-
Constructor Details
-
ElementActionsHelper
public ElementActionsHelper(boolean isSilent)
-
-
Method Details
-
waitForElementPresence
-
waitForElementPresence
-
scrollToFindElement
-
waitForElementToBeClickable
public boolean waitForElementToBeClickable(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionToExecute) -
waitForElementTextToBeNot
public boolean waitForElementTextToBeNot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String textShouldNotBe) -
executeNativeMobileCommandUsingJavascript
-
submitFormUsingJavascript
public void submitFormUsingJavascript(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator) -
changeWebElementVisibilityUsingJavascript
public void changeWebElementVisibilityUsingJavascript(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean desiredIsVisibleState) -
takeScreenshot
-
getElementName
public String getElementName(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator) -
performClipboardActions
public boolean performClipboardActions(org.openqa.selenium.WebDriver driver, ClipboardAction action) -
isFoundInStacktrace
-
identifyUniqueElement
-
identifyUniqueElementIgnoringVisibility
-
getMatchingElementsInformation
-
getElementsCount
public int getElementsCount(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator) Returns the number of elements that match a certain elementLocator- Parameters:
driver- the current instance of Selenium WebDriverelementLocator- the locator of the webElement under test (By xpath, id, selector, name ...etc.)- Returns:
- integer value that represents the number of elements that match the desired elementLocator
-
passAction
-
passAction
-
failAction
public void failAction(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, Throwable... rootCauseException) -
failAction
-
failAction
-
failAction
-
createReportMessage
-
reportActionResult
-