Package ai.devtools.appium
Class SmartDriverElement<T extends io.appium.java_client.MobileElement>
java.lang.Object
org.openqa.selenium.remote.RemoteWebElement
io.appium.java_client.MobileElement
ai.devtools.appium.SmartDriverElement<T>
- All Implemented Interfaces:
io.appium.java_client.ExecutesMethod,io.appium.java_client.FindsByAccessibilityId<io.appium.java_client.MobileElement>,io.appium.java_client.FindsByFluentSelector<io.appium.java_client.MobileElement>,Locatable,FindsByClassName,FindsByCssSelector,FindsById,FindsByLinkText,FindsByName,FindsByTagName,FindsByXPath,HasIdentity,SearchContext,TakesScreenshot,WebElement,WrapsDriver
public class SmartDriverElement<T extends io.appium.java_client.MobileElement>
extends io.appium.java_client.MobileElement
An enhanced RemoteWebElement which uses the results of the dev-tools.ai classifier for improved accuracy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe underlyingWebElementused for performing actions in the browser. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclick()io.appium.java_client.MobileElementfindElement(String arg0, String arg1) findElement(By by) io.appium.java_client.MobileElementfindElementByClassName(String arg0) io.appium.java_client.MobileElementio.appium.java_client.MobileElementfindElementById(String arg0) io.appium.java_client.MobileElementfindElementByLinkText(String arg0) io.appium.java_client.MobileElementfindElementByName(String arg0) io.appium.java_client.MobileElementio.appium.java_client.MobileElementfindElementByTagName(String arg0) io.appium.java_client.MobileElementfindElementByXPath(String arg0) getAttribute(String name) getCssValue(String propertyName) getRect()getSize()getText()booleanbooleanbooleanvoidsendKeys(CharSequence... keysToSend) voidsubmit()toString()Methods inherited from class io.appium.java_client.MobileElement
findElements, findElements, findElementsByAccessibilityId, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, getCenter, setValueMethods inherited from class org.openqa.selenium.remote.RemoteWebElement
equals, getCoordinates, getId, getScreenshotAs, getWrappedDriver, hashCode, setFileDetector, setId, setParent, toJsonMethods inherited from interface io.appium.java_client.FindsByAccessibilityId
findElementByAccessibilityId
-
Field Details
-
realElement
The underlyingWebElementused for performing actions in the browser.
-
-
Method Details
-
toString
- Overrides:
toStringin classRemoteWebElement
-
getText
- Specified by:
getTextin interfaceWebElement- Overrides:
getTextin classRemoteWebElement
-
getSize
- Specified by:
getSizein interfaceWebElement- Overrides:
getSizein classRemoteWebElement
-
getLocation
- Specified by:
getLocationin interfaceWebElement- Overrides:
getLocationin classRemoteWebElement
-
getRect
- Specified by:
getRectin interfaceWebElement- Overrides:
getRectin classRemoteWebElement
-
getTagName
- Specified by:
getTagNamein interfaceWebElement- Overrides:
getTagNamein classRemoteWebElement
-
clear
public void clear()- Specified by:
clearin interfaceWebElement- Overrides:
clearin classRemoteWebElement
-
findElement
- Specified by:
findElementin interfaceSearchContext- Specified by:
findElementin interfaceWebElement
-
getAttribute
- Specified by:
getAttributein interfaceWebElement- Overrides:
getAttributein classRemoteWebElement
-
getCssValue
- Specified by:
getCssValuein interfaceWebElement
-
isDisplayed
public boolean isDisplayed()- Specified by:
isDisplayedin interfaceWebElement- Overrides:
isDisplayedin classRemoteWebElement
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceWebElement- Overrides:
isEnabledin classRemoteWebElement
-
isSelected
public boolean isSelected()- Specified by:
isSelectedin interfaceWebElement- Overrides:
isSelectedin classRemoteWebElement
-
click
public void click()- Specified by:
clickin interfaceWebElement- Overrides:
clickin classRemoteWebElement
-
sendKeys
- Specified by:
sendKeysin interfaceWebElement- Overrides:
sendKeysin classRemoteWebElement
-
submit
public void submit()- Specified by:
submitin interfaceWebElement
-
execute
- Specified by:
executein interfaceio.appium.java_client.ExecutesMethod
-
execute
- Specified by:
executein interfaceio.appium.java_client.ExecutesMethod
-
findElement
- Specified by:
findElementin interfaceio.appium.java_client.FindsByFluentSelector<T extends WebElement>
-
findElementById
- Specified by:
findElementByIdin interfaceFindsById- Overrides:
findElementByIdin classRemoteWebElement
-
findElementByLinkText
public io.appium.java_client.MobileElement findElementByLinkText(String arg0) throws WebDriverException - Specified by:
findElementByLinkTextin interfaceFindsByLinkText- Overrides:
findElementByLinkTextin classRemoteWebElement- Throws:
WebDriverException
-
findElementByPartialLinkText
public io.appium.java_client.MobileElement findElementByPartialLinkText(String arg0) throws WebDriverException - Specified by:
findElementByPartialLinkTextin interfaceFindsByLinkText- Overrides:
findElementByPartialLinkTextin classRemoteWebElement- Throws:
WebDriverException
-
findElementByTagName
- Specified by:
findElementByTagNamein interfaceFindsByTagName- Overrides:
findElementByTagNamein classRemoteWebElement
-
findElementByName
- Specified by:
findElementByNamein interfaceFindsByName- Overrides:
findElementByNamein classRemoteWebElement
-
findElementByClassName
- Specified by:
findElementByClassNamein interfaceFindsByClassName- Overrides:
findElementByClassNamein classRemoteWebElement
-
findElementByCssSelector
public io.appium.java_client.MobileElement findElementByCssSelector(String arg0) throws WebDriverException - Specified by:
findElementByCssSelectorin interfaceFindsByCssSelector- Overrides:
findElementByCssSelectorin classRemoteWebElement- Throws:
WebDriverException
-
findElementByXPath
- Specified by:
findElementByXPathin interfaceFindsByXPath- Overrides:
findElementByXPathin classRemoteWebElement
-