Class ElementActions
java.lang.Object
com.shaft.gui.playwright.element.ElementActions
- All Implemented Interfaces:
ElementActionsContract
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand()ariaSnapshot(com.microsoft.playwright.Locator elementLocator) ariaSnapshot(ShaftLocator elementLocator) ariaSnapshot(org.openqa.selenium.By elementLocator) Captures an accessible-name-tree ("aria") snapshot of the target element, serialized as YAML.assertThat(com.microsoft.playwright.Locator elementLocator) assertThat(ShaftLocator elementLocator) assertThat(org.openqa.selenium.By elementLocator) captureScreenshot(com.microsoft.playwright.Locator elementLocator) captureScreenshot(ShaftLocator elementLocator) captureScreenshot(org.openqa.selenium.By elementLocator) clear(com.microsoft.playwright.Locator elementLocator) clear(ShaftLocator elementLocator) clear(org.openqa.selenium.By elementLocator) click(com.microsoft.playwright.Locator elementLocator) click(ShaftLocator elementLocator) Clicks a clickable element resolved by visible text, label, or accessible name.click(org.openqa.selenium.By elementLocator) clickAndHold(com.microsoft.playwright.Locator elementLocator) clickAndHold(ShaftLocator elementLocator) clickAndHold(org.openqa.selenium.By elementLocator) clickUsingJavascript(com.microsoft.playwright.Locator elementLocator) clickUsingJavascript(ShaftLocator elementLocator) clickUsingJavascript(org.openqa.selenium.By elementLocator) doubleClick(com.microsoft.playwright.Locator elementLocator) doubleClick(ShaftLocator elementLocator) doubleClick(org.openqa.selenium.By elementLocator) dragAndDrop(com.microsoft.playwright.Locator sourceElementLocator, com.microsoft.playwright.Locator destinationElementLocator) dragAndDrop(ShaftLocator sourceElementLocator, ShaftLocator destinationElementLocator) dragAndDrop(org.openqa.selenium.By sourceElementLocator, org.openqa.selenium.By destinationElementLocator) dragAndDropByOffset(com.microsoft.playwright.Locator sourceElementLocator, int xOffset, int yOffset) dragAndDropByOffset(ShaftLocator sourceElementLocator, int xOffset, int yOffset) dragAndDropByOffset(org.openqa.selenium.By sourceElementLocator, int xOffset, int yOffset) executeNativeMobileCommand(String command, Map<String, String> parameters) intgetElementsCount(com.microsoft.playwright.Locator elementLocator) intgetElementsCount(ShaftLocator elementLocator) intgetElementsCount(org.openqa.selenium.By elementLocator) getTableRowsData(com.microsoft.playwright.Locator tableLocator) getTableRowsData(ShaftLocator tableLocator) getTableRowsData(org.openqa.selenium.By tableLocator) hover(com.microsoft.playwright.Locator elementLocator) hover(ShaftLocator elementLocator) hover(org.openqa.selenium.By elementLocator) hoverAndClick(List<org.openqa.selenium.By> hoverElementLocators, org.openqa.selenium.By clickableElementLocator) scrollToElement(com.microsoft.playwright.Locator elementLocator) scrollToElement(ShaftLocator elementLocator) scrollToElement(org.openqa.selenium.By elementLocator) select(ShaftLocator elementLocator, String valueOrVisibleText) setValueUsingJavaScript(com.microsoft.playwright.Locator elementLocator, String value) setValueUsingJavaScript(ShaftLocator elementLocator, String value) setValueUsingJavaScript(org.openqa.selenium.By elementLocator, String value) submitFormUsingJavaScript(com.microsoft.playwright.Locator elementLocator) submitFormUsingJavaScript(ShaftLocator elementLocator) submitFormUsingJavaScript(org.openqa.selenium.By elementLocator) switchToIframe(org.openqa.selenium.By elementLocator) Switches focus from the current iframe to its parent frame.type(com.microsoft.playwright.Locator elementLocator, CharSequence... text) type(ShaftLocator elementLocator, CharSequence... text) type(String elementName, CharSequence... text) Types into an input resolved by visible label, placeholder, or accessible name.type(org.openqa.selenium.By elementLocator, CharSequence... text) typeAppend(com.microsoft.playwright.Locator elementLocator, CharSequence... text) typeAppend(ShaftLocator elementLocator, CharSequence... text) typeAppend(org.openqa.selenium.By elementLocator, CharSequence... text) typeFileLocationForUpload(com.microsoft.playwright.Locator elementLocator, String filePath) typeFileLocationForUpload(ShaftLocator elementLocator, String filePath) typeFileLocationForUpload(org.openqa.selenium.By elementLocator, String filePath) typeSecure(com.microsoft.playwright.Locator elementLocator, CharSequence... text) typeSecure(ShaftLocator elementLocator, CharSequence... text) typeSecure(org.openqa.selenium.By elementLocator, CharSequence... text) verifyThat(com.microsoft.playwright.Locator elementLocator) verifyThat(ShaftLocator elementLocator) verifyThat(org.openqa.selenium.By elementLocator) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementActionsContract
switchToIframe
-
Constructor Details
-
ElementActions
-
-
Method Details
-
and
- Specified by:
andin interfaceElementActionsContract
-
assertThat
- Specified by:
assertThatin interfaceElementActionsContract
-
assertThat
- Specified by:
assertThatin interfaceElementActionsContract
-
assertThat
-
verifyThat
- Specified by:
verifyThatin interfaceElementActionsContract
-
verifyThat
- Specified by:
verifyThatin interfaceElementActionsContract
-
verifyThat
-
getElementsCount
public int getElementsCount(org.openqa.selenium.By elementLocator) - Specified by:
getElementsCountin interfaceElementActionsContract
-
getElementsCount
- Specified by:
getElementsCountin interfaceElementActionsContract
-
getElementsCount
public int getElementsCount(com.microsoft.playwright.Locator elementLocator) -
executeNativeMobileCommand
- Specified by:
executeNativeMobileCommandin interfaceElementActionsContract
-
click
- Specified by:
clickin interfaceElementActionsContract
-
click
- Specified by:
clickin interfaceElementActionsContract
-
click
Clicks a clickable element resolved by visible text, label, or accessible name.- Specified by:
clickin interfaceElementActionsContract- Parameters:
elementName- the visible text, label, or accessible name of the target element- Returns:
- a self-reference to be used to chain actions
-
click
-
clickUsingJavascript
- Specified by:
clickUsingJavascriptin interfaceElementActionsContract
-
clickUsingJavascript
- Specified by:
clickUsingJavascriptin interfaceElementActionsContract
-
clickUsingJavascript
-
scrollToElement
- Specified by:
scrollToElementin interfaceElementActionsContract
-
scrollToElement
- Specified by:
scrollToElementin interfaceElementActionsContract
-
scrollToElement
-
clickAndHold
- Specified by:
clickAndHoldin interfaceElementActionsContract
-
clickAndHold
- Specified by:
clickAndHoldin interfaceElementActionsContract
-
clickAndHold
-
doubleClick
- Specified by:
doubleClickin interfaceElementActionsContract
-
doubleClick
- Specified by:
doubleClickin interfaceElementActionsContract
-
doubleClick
-
dragAndDrop
public ElementActions dragAndDrop(org.openqa.selenium.By sourceElementLocator, org.openqa.selenium.By destinationElementLocator) - Specified by:
dragAndDropin interfaceElementActionsContract
-
dragAndDrop
public ElementActions dragAndDrop(ShaftLocator sourceElementLocator, ShaftLocator destinationElementLocator) - Specified by:
dragAndDropin interfaceElementActionsContract
-
dragAndDrop
public ElementActions dragAndDrop(com.microsoft.playwright.Locator sourceElementLocator, com.microsoft.playwright.Locator destinationElementLocator) -
dragAndDropByOffset
public ElementActions dragAndDropByOffset(org.openqa.selenium.By sourceElementLocator, int xOffset, int yOffset) - Specified by:
dragAndDropByOffsetin interfaceElementActionsContract
-
dragAndDropByOffset
public ElementActions dragAndDropByOffset(ShaftLocator sourceElementLocator, int xOffset, int yOffset) - Specified by:
dragAndDropByOffsetin interfaceElementActionsContract
-
dragAndDropByOffset
public ElementActions dragAndDropByOffset(com.microsoft.playwright.Locator sourceElementLocator, int xOffset, int yOffset) -
hover
- Specified by:
hoverin interfaceElementActionsContract
-
hover
- Specified by:
hoverin interfaceElementActionsContract
-
hover
-
hoverAndClick
public ElementActions hoverAndClick(List<org.openqa.selenium.By> hoverElementLocators, org.openqa.selenium.By clickableElementLocator) - Specified by:
hoverAndClickin interfaceElementActionsContract
-
select
- Specified by:
selectin interfaceElementActionsContract
-
select
- Specified by:
selectin interfaceElementActionsContract
-
select
public ElementActions select(com.microsoft.playwright.Locator elementLocator, String valueOrVisibleText) -
setValueUsingJavaScript
- Specified by:
setValueUsingJavaScriptin interfaceElementActionsContract
-
setValueUsingJavaScript
- Specified by:
setValueUsingJavaScriptin interfaceElementActionsContract
-
setValueUsingJavaScript
public ElementActions setValueUsingJavaScript(com.microsoft.playwright.Locator elementLocator, String value) -
submitFormUsingJavaScript
- Specified by:
submitFormUsingJavaScriptin interfaceElementActionsContract
-
submitFormUsingJavaScript
- Specified by:
submitFormUsingJavaScriptin interfaceElementActionsContract
-
submitFormUsingJavaScript
-
switchToIframe
- Specified by:
switchToIframein interfaceElementActionsContract
-
switchToDefaultContent
- Specified by:
switchToDefaultContentin interfaceElementActionsContract
-
switchToParentFrame
Switches focus from the current iframe to its parent frame.- Specified by:
switchToParentFramein interfaceElementActionsContract- Returns:
- a self-reference to be used to chain actions
-
getCurrentFrame
- Specified by:
getCurrentFramein interfaceElementActionsContract
-
type
- Specified by:
typein interfaceElementActionsContract
-
type
- Specified by:
typein interfaceElementActionsContract
-
type
Types into an input resolved by visible label, placeholder, or accessible name.- Specified by:
typein interfaceElementActionsContract- Parameters:
elementName- the visible label, placeholder, or accessible name of the target inputtext- one or more character sequences to type- Returns:
- a self-reference to be used to chain actions
-
type
-
clear
- Specified by:
clearin interfaceElementActionsContract
-
clear
- Specified by:
clearin interfaceElementActionsContract
-
clear
-
typeAppend
- Specified by:
typeAppendin interfaceElementActionsContract
-
typeAppend
- Specified by:
typeAppendin interfaceElementActionsContract
-
typeAppend
public ElementActions typeAppend(com.microsoft.playwright.Locator elementLocator, CharSequence... text) -
typeFileLocationForUpload
public ElementActions typeFileLocationForUpload(org.openqa.selenium.By elementLocator, String filePath) - Specified by:
typeFileLocationForUploadin interfaceElementActionsContract
-
typeFileLocationForUpload
- Specified by:
typeFileLocationForUploadin interfaceElementActionsContract
-
typeFileLocationForUpload
public ElementActions typeFileLocationForUpload(com.microsoft.playwright.Locator elementLocator, String filePath) -
typeSecure
- Specified by:
typeSecurein interfaceElementActionsContract
-
typeSecure
- Specified by:
typeSecurein interfaceElementActionsContract
-
typeSecure
public ElementActions typeSecure(com.microsoft.playwright.Locator elementLocator, CharSequence... text) -
getTableRowsData
- Specified by:
getTableRowsDatain interfaceElementActionsContract
-
getTableRowsData
- Specified by:
getTableRowsDatain interfaceElementActionsContract
-
getTableRowsData
-
captureScreenshot
- Specified by:
captureScreenshotin interfaceElementActionsContract
-
captureScreenshot
- Specified by:
captureScreenshotin interfaceElementActionsContract
-
captureScreenshot
-
ariaSnapshot
Description copied from interface:ElementActionsContractCaptures an accessible-name-tree ("aria") snapshot of the target element, serialized as YAML.- Specified by:
ariaSnapshotin interfaceElementActionsContract- Parameters:
elementLocator- the locator of the element to snapshot- Returns:
- the captured snapshot serialized as YAML
-
ariaSnapshot
- Specified by:
ariaSnapshotin interfaceElementActionsContract
-
ariaSnapshot
-