public class IOSElement extends MobileElement implements FindsByIosUIAutomation<MobileElement>
fileDetector
Constructor and Description |
---|
IOSElement() |
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.remote.Response |
execute(String driverCommand,
Map<String,?> parameters) |
T |
findElement(org.openqa.selenium.By by)
Find the first
WebElement using the given method. |
T |
findElement(String by,
String using) |
T |
findElementByAccessibilityId(String using) |
T |
findElementByClassName(String using) |
T |
findElementByCssSelector(String using) |
T |
findElementById(String id) |
MobileElement |
findElementByIosUIAutomation(String using) |
T |
findElementByLinkText(String using) |
T |
findElementByName(String using) |
T |
findElementByPartialLinkText(String using) |
T |
findElementByTagName(String using) |
T |
findElementByXPath(String using) |
List<MobileElement> |
findElementsByIosUIAutomation(String using) |
String |
getCssValue(String propertyName)
Get the value of a given CSS property.
|
void |
submit()
If this current element is a form, or an element within a form, then this will be submitted to
the remote server.
|
findElements, findElements, findElementsByAccessibilityId, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, getCenter, pinch, setValue, swipe, swipe, tap, zoom
clear, click, equals, getAttribute, getCoordinates, getId, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedDriver, hashCode, isDisplayed, isEnabled, isSelected, sendKeys, setFileDetector, setFoundBy, setId, setParent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
clear, click, getAttribute, getLocation, getRect, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys
public MobileElement findElementByIosUIAutomation(String using) throws org.openqa.selenium.WebDriverException
findElementByIosUIAutomation
in interface FindsByIosUIAutomation<MobileElement>
org.openqa.selenium.WebDriverException
- This method is not applicable with browser/webview UI.public List<MobileElement> findElementsByIosUIAutomation(String using) throws org.openqa.selenium.WebDriverException
findElementsByIosUIAutomation
in interface FindsByIosUIAutomation<MobileElement>
org.openqa.selenium.WebDriverException
- This method is not applicable with browser/webview UI.public org.openqa.selenium.remote.Response execute(String driverCommand, Map<String,?> parameters)
execute
in class org.openqa.selenium.remote.RemoteWebElement
public T findElement(org.openqa.selenium.By by)
WebElement
WebElement
using the given method. See the note in
WebElement.findElements(By)
about finding via XPath.
This method is affected by the 'implicit wait' times in force at the time of execution.
The findElement(..) invocation will return a matching row, or try again repeatedly until
the configured timeout is reached.
findElement should not be used to look for non-present elements, use WebElement.findElements(By)
and assert zero length response instead.
findElement
in interface TouchableElement<T extends WebElement>
findElement
in interface SearchContext
findElement
in interface WebElement
findElement
in class org.openqa.selenium.remote.RemoteWebElement
by
- The locating mechanismBy
,
WebDriver.Timeouts
public T findElement(String by, String using)
findElement
in class org.openqa.selenium.remote.RemoteWebElement
public T findElementById(String id)
findElementById
in interface TouchableElement<T extends WebElement>
findElementById
in interface FindsById
findElementById
in class org.openqa.selenium.remote.RemoteWebElement
public T findElementByLinkText(String using) throws org.openqa.selenium.WebDriverException
findElementByLinkText
in interface TouchableElement<T extends WebElement>
findElementByLinkText
in interface FindsByLinkText
findElementByLinkText
in class org.openqa.selenium.remote.RemoteWebElement
org.openqa.selenium.WebDriverException
- his method doesn't work against native app UI.public T findElementByPartialLinkText(String using) throws org.openqa.selenium.WebDriverException
findElementByPartialLinkText
in interface TouchableElement<T extends WebElement>
findElementByPartialLinkText
in interface FindsByLinkText
findElementByPartialLinkText
in class org.openqa.selenium.remote.RemoteWebElement
org.openqa.selenium.WebDriverException
- his method doesn't work against native app UI.public T findElementByTagName(String using)
findElementByTagName
in interface TouchableElement<T extends WebElement>
findElementByTagName
in interface FindsByTagName
findElementByTagName
in class org.openqa.selenium.remote.RemoteWebElement
public T findElementByName(String using)
findElementByName
in interface TouchableElement<T extends WebElement>
findElementByName
in interface FindsByName
findElementByName
in class org.openqa.selenium.remote.RemoteWebElement
public T findElementByClassName(String using)
findElementByClassName
in interface TouchableElement<T extends WebElement>
findElementByClassName
in interface FindsByClassName
findElementByClassName
in class org.openqa.selenium.remote.RemoteWebElement
public T findElementByCssSelector(String using) throws org.openqa.selenium.WebDriverException
findElementByCssSelector
in interface TouchableElement<T extends WebElement>
findElementByCssSelector
in interface FindsByCssSelector
findElementByCssSelector
in class org.openqa.selenium.remote.RemoteWebElement
org.openqa.selenium.WebDriverException
- his method doesn't work against native app UI.public T findElementByXPath(String using)
findElementByXPath
in interface TouchableElement<T extends WebElement>
findElementByXPath
in interface FindsByXPath
findElementByXPath
in class org.openqa.selenium.remote.RemoteWebElement
public T findElementByAccessibilityId(String using)
findElementByAccessibilityId
in interface FindsByAccessibilityId<T extends WebElement>
public void submit() throws org.openqa.selenium.WebDriverException
WebElement
submit
in interface WebElement
submit
in class org.openqa.selenium.remote.RemoteWebElement
org.openqa.selenium.WebDriverException
- because it may not work against native app UI.public String getCssValue(String propertyName) throws org.openqa.selenium.WebDriverException
WebElement
Note that shorthand CSS properties (e.g. background, font, border, border-top, margin, margin-top, padding, padding-top, list-style, outline, pause, cue) are not returned, in accordance with the DOM CSS2 specification - you should directly access the longhand properties (e.g. background-color) to access the desired values.
getCssValue
in interface WebElement
getCssValue
in class org.openqa.selenium.remote.RemoteWebElement
propertyName
- the css property name of the elementorg.openqa.selenium.WebDriverException
- because it may not work against native app UI.Copyright © 2016. All rights reserved.