Package FlaNium.WinAPI
Class DesktopElement
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebElement
-
- FlaNium.WinAPI.DesktopElement
-
- All Implemented Interfaces:
org.openqa.selenium.interactions.Locatable,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsDriver
- Direct Known Subclasses:
Button,Calendar,ComboBox,ComboBoxItem,DataGridView,DataGridViewCell,DataGridViewHeader,DataGridViewHeaderItem,DataGridViewRow,DateTimePicker,Grid,GridCell,GridHeader,GridHeaderItem,GridRow,Label,ListBox,ListBoxItem,Menu,MenuItem,ProgressBar,RadioButton,ScrollBarBase,Slider,Spinner,Tab,TabItem,TextBox,Thumb,TitleBar,ToggleButton,Tree,TreeItem,Window
public class DesktopElement extends org.openqa.selenium.remote.RemoteWebElement
-
-
Constructor Summary
Constructors Constructor Description DesktopElement(org.openqa.selenium.WebElement element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.openqa.selenium.remote.ResponsecallValueCommand(String command, int index)protected org.openqa.selenium.remote.ResponsecallValueCommand(String command, int x, int y)protected org.openqa.selenium.remote.ResponsecallValueCommand(String command, int index, String text)protected org.openqa.selenium.remote.ResponsecallValueCommand(String command, int index, String text, int count)protected org.openqa.selenium.remote.ResponsecallValueCommand(String command, String value)protected org.openqa.selenium.remote.ResponsecallValueCommand(String command, LocalDateTime dateTime)protected org.openqa.selenium.remote.ResponsecallVoidCommand(String command)WebElementCastcastTo()Cast DesktopElement to a Typed Element.protected List<LocalDateTime>createLocalDateTimeFromResponse(org.openqa.selenium.remote.Response response)protected org.openqa.selenium.remote.RemoteWebElementcreateRemoteWebElementFromResponse(org.openqa.selenium.remote.Response response)protected List<org.openqa.selenium.remote.RemoteWebElement>createRemoteWebElementsFromResponse(org.openqa.selenium.remote.Response response)protected org.openqa.selenium.remote.Responseexe(String command, HashMap<String,Object> parameters)org.openqa.selenium.remote.Responseexecute(String command, Map<String,?> parameters)WindowgetActiveWindow()Get the active window.StringgetAttribute(String name)Get the value of an element attribute.org.openqa.selenium.RectanglegetElementRect()Get Bounding Rectangle of element.StringgetName()Getting the "Name" attribute of an element.ElementMouseActionsmouseActions()Get Mouse Actions instance.protected LocalDateTimeparseDateTime(String dateTime)protected doubleparseDouble(org.openqa.selenium.remote.Response response)ScreenshotActionsscreenshotActions()Get Screenshot Actions of current item.voidsetAsRootElement()Sets the current element as the root element of the driver.CoordinateElementtoCoordinateElement()Cast DesktopElement to a Coordinate Element.TouchActionstouchActions()Get Touch Actions instance.-
Methods inherited from class org.openqa.selenium.remote.RemoteWebElement
clear, click, equals, execute, findElement, findElement, findElements, findElements, getAccessibleName, getAriaRole, getCoordinates, getCssValue, getDomAttribute, getDomProperty, getId, getLocation, getRect, getScreenshotAs, getShadowRoot, getSize, getTagName, getText, getWrappedDriver, hashCode, isDisplayed, isEnabled, isSelected, sendKeys, setFileDetector, setFoundBy, setId, setParent, submit, toJson, toString
-
-
-
-
Method Detail
-
exe
protected org.openqa.selenium.remote.Response exe(String command, HashMap<String,Object> parameters)
-
execute
public org.openqa.selenium.remote.Response execute(String command, Map<String,?> parameters)
- Overrides:
executein classorg.openqa.selenium.remote.RemoteWebElement
-
createRemoteWebElementFromResponse
protected org.openqa.selenium.remote.RemoteWebElement createRemoteWebElementFromResponse(org.openqa.selenium.remote.Response response)
-
createRemoteWebElementsFromResponse
protected List<org.openqa.selenium.remote.RemoteWebElement> createRemoteWebElementsFromResponse(org.openqa.selenium.remote.Response response)
-
createLocalDateTimeFromResponse
protected List<LocalDateTime> createLocalDateTimeFromResponse(org.openqa.selenium.remote.Response response)
-
callVoidCommand
protected org.openqa.selenium.remote.Response callVoidCommand(String command)
-
callValueCommand
protected org.openqa.selenium.remote.Response callValueCommand(String command, String value)
-
callValueCommand
protected org.openqa.selenium.remote.Response callValueCommand(String command, int index)
-
callValueCommand
protected org.openqa.selenium.remote.Response callValueCommand(String command, int index, String text)
-
callValueCommand
protected org.openqa.selenium.remote.Response callValueCommand(String command, int index, String text, int count)
-
callValueCommand
protected org.openqa.selenium.remote.Response callValueCommand(String command, int x, int y)
-
callValueCommand
protected org.openqa.selenium.remote.Response callValueCommand(String command, LocalDateTime dateTime)
-
parseDouble
protected double parseDouble(org.openqa.selenium.remote.Response response)
-
parseDateTime
protected LocalDateTime parseDateTime(String dateTime)
-
getName
public String getName()
Getting the "Name" attribute of an element.- Returns:
- The "Name" attribute of the current element.
-
getActiveWindow
public Window getActiveWindow()
Get the active window.- Returns:
- The active window.
-
getElementRect
public org.openqa.selenium.Rectangle getElementRect()
Get Bounding Rectangle of element.- Returns:
- Rectangle instance.
-
setAsRootElement
public void setAsRootElement()
Sets the current element as the root element of the driver.
-
getAttribute
public String getAttribute(String name)
Get the value of an element attribute.- Specified by:
getAttributein interfaceorg.openqa.selenium.WebElement- Overrides:
getAttributein classorg.openqa.selenium.remote.RemoteWebElement- Parameters:
name- name of attribute.- Returns:
- value of attribute.
-
mouseActions
public ElementMouseActions mouseActions()
Get Mouse Actions instance.- Returns:
- MouseActions instance.
-
touchActions
public TouchActions touchActions()
Get Touch Actions instance.- Returns:
- Touch Actions instance.
-
screenshotActions
public ScreenshotActions screenshotActions()
Get Screenshot Actions of current item.- Returns:
- ScreenshotActions instance.
-
castTo
public WebElementCast castTo()
Cast DesktopElement to a Typed Element.- Returns:
- WebElementExtensions instance.
-
toCoordinateElement
public CoordinateElement toCoordinateElement()
Cast DesktopElement to a Coordinate Element.- Returns:
- WebElementExtensions instance.
-
-