public static class MobileUiObjectFactory.UiObjectBuilder extends Object implements HasWaits, org.openqa.selenium.WebElement, org.openqa.selenium.internal.WrapsElement, CanSwipe, HasLocator, CanVerify
| Constructor and Description |
|---|
UiObjectBuilder() |
| Modifier and Type | Method and Description |
|---|---|
List<MobileUiObject> |
all() |
MobileUiObject |
build() |
void |
clear() |
void |
click() |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
MobileUiObject |
first() |
MobileUiObject |
get(int i) |
String |
getAttribute(String name) |
String |
getCssValue(String propertyName) |
org.openqa.selenium.Point |
getLocation() |
org.openqa.selenium.By |
getLocator() |
org.openqa.selenium.Rectangle |
getRect() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
org.openqa.selenium.Dimension |
getSize() |
String |
getTagName() |
String |
getText() |
MobileUiObject |
getWrappedElement() |
boolean |
isDisplayed() |
boolean |
isEnabled() |
boolean |
isPresent() |
boolean |
isSelected() |
MobileUiObject |
last() |
MobileUiObjectFactory.UiObjectBuilder |
onAndroid(org.openqa.selenium.By by) |
MobileUiObjectFactory.UiObjectBuilder |
onAndroid(String... locator) |
MobileUiObjectFactory.UiObjectBuilder |
onIOs(org.openqa.selenium.By by) |
MobileUiObjectFactory.UiObjectBuilder |
onIOs(String... filter) |
MobileUiObjectFactory.UiObjectBuilder |
onIPhone(org.openqa.selenium.By by) |
MobileUiObjectFactory.UiObjectBuilder |
onIPhone(String... filter) |
void |
sendKeys(CharSequence... keysToSend) |
void |
setLocator(org.openqa.selenium.By by) |
void |
submit() |
void |
swipeDown() |
void |
swipeLeft() |
void |
swipeRight() |
void |
swipeUp() |
void |
verifyVisible() |
void |
verifyVisible(String failMessage) |
void |
verifyVisible(String failMessage,
org.openqa.selenium.By errorObject) |
void |
verifyVisible(String failMessage,
HasLocator errorObject) |
void |
waitForPresent() |
void |
waitForVisible() |
public MobileUiObject getWrappedElement()
getWrappedElement in interface org.openqa.selenium.WrapsElementpublic MobileUiObjectFactory.UiObjectBuilder onAndroid(String... locator)
public MobileUiObjectFactory.UiObjectBuilder onAndroid(org.openqa.selenium.By by)
public MobileUiObjectFactory.UiObjectBuilder onIPhone(String... filter)
public MobileUiObjectFactory.UiObjectBuilder onIOs(String... filter)
public MobileUiObjectFactory.UiObjectBuilder onIPhone(org.openqa.selenium.By by)
public MobileUiObjectFactory.UiObjectBuilder onIOs(org.openqa.selenium.By by)
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
throws org.openqa.selenium.WebDriverException
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotorg.openqa.selenium.WebDriverExceptionpublic void click()
click in interface org.openqa.selenium.WebElementpublic void submit()
submit in interface org.openqa.selenium.WebElementpublic void sendKeys(CharSequence... keysToSend)
sendKeys in interface org.openqa.selenium.WebElementpublic void clear()
clear in interface org.openqa.selenium.WebElementpublic String getTagName()
getTagName in interface org.openqa.selenium.WebElementpublic String getAttribute(String name)
getAttribute in interface org.openqa.selenium.WebElementpublic boolean isSelected()
isSelected in interface org.openqa.selenium.WebElementpublic boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementpublic String getText()
getText in interface org.openqa.selenium.WebElementpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebElementpublic boolean isPresent()
public boolean isDisplayed()
isDisplayed in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Point getLocation()
getLocation in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Dimension getSize()
getSize in interface org.openqa.selenium.WebElementpublic String getCssValue(String propertyName)
getCssValue in interface org.openqa.selenium.WebElementpublic void waitForVisible()
waitForVisible in interface HasWaitspublic void waitForPresent()
waitForPresent in interface HasWaitspublic MobileUiObject build()
public void swipeRight()
swipeRight in interface CanSwipepublic org.openqa.selenium.By getLocator()
getLocator in interface HasLocatorpublic void setLocator(org.openqa.selenium.By by)
setLocator in interface HasLocatorpublic void verifyVisible()
verifyVisible in interface CanVerifypublic void verifyVisible(String failMessage)
verifyVisible in interface CanVerifypublic void verifyVisible(String failMessage, HasLocator errorObject)
verifyVisible in interface CanVerifypublic void verifyVisible(String failMessage, org.openqa.selenium.By errorObject)
verifyVisible in interface CanVerifypublic org.openqa.selenium.Rectangle getRect()
getRect in interface org.openqa.selenium.WebElementpublic List<MobileUiObject> all()
public MobileUiObject first()
public MobileUiObject last()
public MobileUiObject get(int i)
Copyright © 2019 Automation RockStars. All rights reserved.