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 TypeMethodDescriptionvoid
changeWebElementVisibilityUsingJavascript
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean desiredIsVisibleState) createReportMessage
(String actionName, String testData, String elementName, Boolean passFailStatus) void
executeNativeMobileCommandUsingJavascript
(org.openqa.selenium.WebDriver driver, String command, Map<String, String> parameters) void
failAction
(org.openqa.selenium.WebDriver driver, String actionName, String testData, org.openqa.selenium.By elementLocator, List<List<Object>> screenshots, Throwable... rootCauseException) void
failAction
(org.openqa.selenium.WebDriver driver, String testData, org.openqa.selenium.By elementLocator, Throwable... rootCauseException) void
failAction
(org.openqa.selenium.WebDriver driver, String testData, org.openqa.selenium.By elementLocator, List<List<Object>> attachments, Throwable... rootCauseException) void
failAction
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, Throwable... rootCauseException) getElementName
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator) int
getElementsCount
(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) boolean
isFoundInStacktrace
(Class<?> classObject, Throwable throwable) void
passAction
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionName, String testData, List<List<Object>> screenshots, String elementName) void
passAction
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String testData, List<Object> screenshot, String elementName) boolean
performClipboardActions
(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) void
submitFormUsingJavascript
(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) boolean
waitForElementTextToBeNot
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String textShouldNotBe) boolean
waitForElementToBeClickable
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionToExecute)
-
Field Details
-
Constructor Details
-
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
-