Package ai.test.sdk
Class TestAiElement
java.lang.Object
org.openqa.selenium.remote.RemoteWebElement
ai.test.sdk.TestAiElement
- All Implemented Interfaces:
Locatable,FindsByClassName,FindsByCssSelector,FindsById,FindsByLinkText,FindsByName,FindsByTagName,FindsByXPath,HasIdentity,SearchContext,TakesScreenshot,WebElement,WrapsDriver
An enhanced RemoteWebElement which uses the results of the Test.ai classifier for improved accuracy.
- Author:
- Alexander Wu ([email protected])
-
Method Summary
Methods inherited from class org.openqa.selenium.remote.RemoteWebElement
clear, equals, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, getAttribute, getCoordinates, getCssValue, getId, getScreenshotAs, getWrappedDriver, hashCode, isDisplayed, isEnabled, isSelected, setFileDetector, setId, setParent, toJson, toString
-
Method Details
-
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
-
click
public void click()- Specified by:
clickin interfaceWebElement- Overrides:
clickin classRemoteWebElement
-
click
public void click(boolean jsClick) Attempts to perform a click action on this element- Parameters:
jsClick- Set `true` to use javascript to perform the click.
-
sendKeys
- Specified by:
sendKeysin interfaceWebElement- Overrides:
sendKeysin classRemoteWebElement
-
sendKeys
Attempts to type the specified String (value) into this element.- Parameters:
value- The String to type into this element.clickFirst- Settrueto tap this element (e.g. to focus it) first before sending keys.jsKeys- Settrueto use javascript to set thevalueproperty of this element.
-
submit
public void submit()- Specified by:
submitin interfaceWebElement- Overrides:
submitin classRemoteWebElement
-