Package com.shaft.gui.element.internal
Class Actions
java.lang.Object
com.shaft.driver.internal.FluentWebDriverAction
com.shaft.gui.element.ElementActions
com.shaft.gui.element.internal.Actions
-
Constructor Summary
ConstructorDescriptionActions()
Actions
(DriverFactoryHelper helper) Actions
(org.openqa.selenium.WebDriver driver) Actions
(org.openqa.selenium.WebDriver driver, boolean isSilent) -
Method Summary
Modifier and TypeMethodDescriptionand()
click
(@NonNull org.openqa.selenium.By locator) Clicks on a certain element using Selenium WebDriver, or JavaScriptdragAndDrop
(@NonNull org.openqa.selenium.By sourceElementLocator, @NonNull org.openqa.selenium.By destinationElementLocator) Drags the source element and drops it onto the destination elementtype
(@NonNull org.openqa.selenium.By locator, @NonNull CharSequence text) Methods inherited from class com.shaft.gui.element.ElementActions
assertThat, captureScreenshot, clear, clickAndHold, clickUsingJavascript, clipboardActions, doubleClick, dragAndDropByOffset, executeNativeMobileCommand, getAttribute, getCSSProperty, getCurrentFrame, getElementsCount, getSelectedText, getTableRowsData, getText, hover, hoverAndClick, isElementClickable, isElementDisplayed, keyPress, scrollToElement, select, setValueUsingJavaScript, submitFormUsingJavaScript, switchToDefaultContent, switchToIframe, typeAppend, typeFileLocationForUpload, typeSecure, verifyThat, waitForTextToChange, waitToAttribute, waitToBeInvisible, waitToBeReady, waitToBeReady, waitUntilAttributeContains, waitUntilElementTextToBe, waitUntilElementToBeSelected, waitUntilNumberOfElementsToBe, waitUntilNumberOfElementsToBeLessThan, waitUntilNumberOfElementsToBeMoreThan, waitUntilPresenceOfAllElementsLocatedBy
Methods inherited from class com.shaft.driver.internal.FluentWebDriverAction
alert, browser, element, initialize, initialize, initialize, initialize, performAlertAction, performBrowserAction, performElementAction, performTouchAction, touch, waitUntil
-
Constructor Details
-
Actions
public Actions() -
Actions
public Actions(org.openqa.selenium.WebDriver driver) -
Actions
public Actions(org.openqa.selenium.WebDriver driver, boolean isSilent) -
Actions
-
-
Method Details
-
and
- Overrides:
and
in classElementActions
-
click
Description copied from class:ElementActions
Clicks on a certain element using Selenium WebDriver, or JavaScript- Overrides:
click
in classElementActions
- Parameters:
locator
- the locator of the webElement under test (By xpath, id, selector, name ...etc.)- Returns:
- a self-reference to be used to chain actions
-
type
@Step("Type") public Actions type(@NonNull @NonNull org.openqa.selenium.By locator, @NonNull @NonNull CharSequence text) - Overrides:
type
in classElementActions
-
dragAndDrop
@Step("Drag and drop") public Actions dragAndDrop(@NonNull @NonNull org.openqa.selenium.By sourceElementLocator, @NonNull @NonNull org.openqa.selenium.By destinationElementLocator) Description copied from class:ElementActions
Drags the source element and drops it onto the destination element- Overrides:
dragAndDrop
in classElementActions
- Parameters:
sourceElementLocator
- the locator of the source webElement that should be dragged under test (By xpath, id, selector, name ...etc.)destinationElementLocator
- the locator of the target webElement that should receive the dropped source element under test (By xpath, id, selector, name ...etc.)- Returns:
- a self-reference to be used to chain actions
-