Interface SelenideAppiumElement
- All Superinterfaces:
org.openqa.selenium.interactions.Locatable,org.openqa.selenium.SearchContext,SelenideElement,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsDriver,org.openqa.selenium.WrapsElement
-
Method Summary
Modifier and TypeMethodDescriptionSame asSelenideElement.find(String)$(org.openqa.selenium.By selector) Same asSelenideElement.find(String)$(org.openqa.selenium.By selector, int index) Same asSelenideElement.findAll(String)$$(org.openqa.selenium.By selector) Same asSelenideElement.findAll(By)Short form ofwebDriver.findElements(thisElement, By.xpath(xpath))Locates the first matching element inside given element using xpath locatorLocates the Nth matching element inside given element using xpath locatorGive this element a human-readable name Caution: you probably don't need this method.Locates the first matching element inside given elementLocates the Nth matching element inside given elementfind(org.openqa.selenium.By selector) Same asSelenideElement.find(String)find(org.openqa.selenium.By selector, int index) Short form ofwebDriver.findElements(thisElement, By.cssSelector(cssSelector))findAll(org.openqa.selenium.By selector) Short form ofwebDriver.findElements(thisElement, selector)scroll(AppiumScrollOptions appiumScrollOptions) scrollTo()Ask browser to scroll to this element The scrolling is performed instantly (ignoring CSS property "scroll-behavior: smooth").should(WebElementCondition... condition) Sequentially checks that given element meets all given conditions.should(WebElementCondition condition, Duration timeout) Wait until given element meets given condition (with given timeout)shouldBe(WebElementCondition... condition) Synonym forSelenideElement.should(WebElementCondition...).shouldBe(WebElementCondition condition, Duration timeout) Wait until given element meets given condition (with given timeout)shouldHave(WebElementCondition... condition) Synonym forSelenideElement.should(WebElementCondition...).shouldHave(WebElementCondition condition, Duration timeout) Wait until given element meets given condition (with given timeout)shouldNot(WebElementCondition... condition) Sequentially checks that given element does not meet given conditions.shouldNot(WebElementCondition condition, Duration timeout) Wait until given element meets given condition (with given timeout)shouldNotBe(WebElementCondition... condition) Synonym forSelenideElement.shouldNot(WebElementCondition...).shouldNotBe(WebElementCondition condition, Duration timeout) Wait until given element does NOT meet given condition (with given timeout)shouldNotHave(WebElementCondition... condition) Synonym forSelenideElement.shouldNot(WebElementCondition...).shouldNotHave(WebElementCondition condition, Duration timeout) Wait until given element does NOT meet given condition (with given timeout)swipe(AppiumSwipeOptions appiumSwipeOptions) swipeTo()tap()tap(AppiumClickOptions appiumClickOptions) Methods inherited from interface org.openqa.selenium.interactions.Locatable
getCoordinatesMethods inherited from interface com.codeborne.selenide.SelenideElement
ancestor, ancestor, append, attr, cached, clear, click, click, closest, contextClick, data, describe, doubleClick, doubleClick, download, download, download, download, download, downloadFiles, dragAndDrop, execute, execute, execute, exists, getAlias, getAttribute, getCssValue, getOptions, getOwnText, getSearchCriteria, getSelectedOption, getSelectedOptions, getSelectedOptionText, getSelectedOptionValue, getText, getValue, getWrappedElement, has, has, highlight, highlight, hover, hover, innerHtml, innerText, is, is, isDisplayed, isImage, lastChild, name, options, parent, paste, preceding, press, pressEnter, pressEscape, pressTab, pseudo, pseudo, screenshot, screenshotAsImage, scroll, scrollIntoCenter, scrollIntoView, scrollIntoView, scrollIntoView, selectOption, selectOption, selectOptionByValue, selectOptionContainingText, selectRadio, setSelected, setValue, setValue, sibling, text, toString, toWebElement, type, type, unfocus, unhighlight, uploadFile, uploadFromClasspath, val, val, valMethods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAsMethods inherited from interface org.openqa.selenium.WebElement
findElement, findElements, getAccessibleName, getAriaRole, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, isEnabled, isSelected, sendKeys, submitMethods inherited from interface org.openqa.selenium.WrapsDriver
getWrappedDriver
-
Method Details
-
as
Description copied from interface:SelenideElementGive this element a human-readable name Caution: you probably don't need this method. It's always a good idea to have the actual selector instead of "nice" description (which might be misleading or even lying).- Specified by:
asin interfaceSelenideElement- Parameters:
alias- a human-readable name of this element (null or empty string not allowed)- Returns:
- this element
- See Also:
-
hideKeyboard
- See Also:
-
scrollTo
Description copied from interface:SelenideElementAsk browser to scroll to this element The scrolling is performed instantly (ignoring CSS property "scroll-behavior: smooth").- Specified by:
scrollToin interfaceSelenideElement- See Also:
-
scroll
- See Also:
-
swipeTo
- See Also:
-
swipe
- See Also:
-
tap
- See Also:
-
tap
- See Also:
-
doubleTap
- See Also:
-
shouldNotBe
@CanIgnoreReturnValue SelenideAppiumElement shouldNotBe(WebElementCondition condition, Duration timeout) Description copied from interface:SelenideElementWait until given element does NOT meet given condition (with given timeout)- Specified by:
shouldNotBein interfaceSelenideElement- See Also:
-
shouldNotBe
Description copied from interface:SelenideElementSynonym forSelenideElement.shouldNot(WebElementCondition...). Useful for better readability.For example:
$("#errorMessage").shouldNotBe(visible, enabled);- Specified by:
shouldNotBein interfaceSelenideElement- See Also:
-
shouldNotHave
@CanIgnoreReturnValue SelenideAppiumElement shouldNotHave(WebElementCondition condition, Duration timeout) Description copied from interface:SelenideElementWait until given element does NOT meet given condition (with given timeout)- Specified by:
shouldNotHavein interfaceSelenideElement- See Also:
-
shouldNotHave
Description copied from interface:SelenideElementSynonym forSelenideElement.shouldNot(WebElementCondition...). Useful for better readability.For example:
$("#errorMessage").shouldNotHave(text("Exception"), text("Error"));- Specified by:
shouldNotHavein interfaceSelenideElement- See Also:
-
shouldNot
@CanIgnoreReturnValue SelenideAppiumElement shouldNot(WebElementCondition condition, Duration timeout) Description copied from interface:SelenideElementWait until given element meets given condition (with given timeout)- Specified by:
shouldNotin interfaceSelenideElement- See Also:
-
shouldNot
Description copied from interface:SelenideElementSequentially checks that given element does not meet given conditions.IMPORTANT: If element does match the conditions, waits up to 4 seconds until element does not meet the conditions. It's extremely useful for dynamic content.
Timeout is configurable via
Configuration.timeoutFor example:
$("#errorMessage").should(exist);- Specified by:
shouldNotin interfaceSelenideElement- See Also:
-
shouldBe
@CanIgnoreReturnValue SelenideAppiumElement shouldBe(WebElementCondition condition, Duration timeout) Description copied from interface:SelenideElementWait until given element meets given condition (with given timeout)- Specified by:
shouldBein interfaceSelenideElement- See Also:
-
shouldBe
Description copied from interface:SelenideElementSynonym forSelenideElement.should(WebElementCondition...). Useful for better readability.For example:
$("#errorMessage").shouldBe(visible, enabled);- Specified by:
shouldBein interfaceSelenideElement- See Also:
-
shouldHave
@CanIgnoreReturnValue SelenideAppiumElement shouldHave(WebElementCondition condition, Duration timeout) Description copied from interface:SelenideElementWait until given element meets given condition (with given timeout)- Specified by:
shouldHavein interfaceSelenideElement- See Also:
-
shouldHave
Description copied from interface:SelenideElementSynonym forSelenideElement.should(WebElementCondition...). Useful for better readability.For example:
$("#errorMessage").shouldHave(text("Hello"), text("World"));- Specified by:
shouldHavein interfaceSelenideElement- See Also:
-
should
Description copied from interface:SelenideElementWait until given element meets given condition (with given timeout)- Specified by:
shouldin interfaceSelenideElement- See Also:
-
should
Description copied from interface:SelenideElementSequentially checks that given element meets all given conditions.IMPORTANT: If element does not match then conditions immediately, waits up to 4 seconds until element meets the conditions. It's extremely useful for dynamic content.
Timeout is configurable via
Configuration.timeoutFor example:
$("#errorMessage").should(appear);- Specified by:
shouldin interfaceSelenideElement- Returns:
- Given element, useful for chaining:
$("#errorMessage").should(appear).shouldBe(enabled); - See Also:
-
find
Description copied from interface:SelenideElementLocates the first matching element inside given elementShort form of
webElement.findElement(By.cssSelector(cssSelector))- Specified by:
findin interfaceSelenideElement- See Also:
-
find
Description copied from interface:SelenideElementLocates the Nth matching element inside given element- Specified by:
findin interfaceSelenideElement- See Also:
-
find
Description copied from interface:SelenideElementSame asSelenideElement.find(String)- Specified by:
findin interfaceSelenideElement- See Also:
-
find
Description copied from interface:SelenideElement- Specified by:
findin interfaceSelenideElement- See Also:
-
$
Description copied from interface:SelenideElementSame asSelenideElement.find(String)- Specified by:
$in interfaceSelenideElement- See Also:
-
$
Description copied from interface:SelenideElement- Specified by:
$in interfaceSelenideElement- See Also:
-
$
Description copied from interface:SelenideElementSame asSelenideElement.find(String)- Specified by:
$in interfaceSelenideElement- See Also:
-
$
Description copied from interface:SelenideElement- Specified by:
$in interfaceSelenideElement- See Also:
-
$x
Description copied from interface:SelenideElementLocates the first matching element inside given element using xpath locatorShort form of
webElement.findElement(By.xpath(xpathLocator))- Specified by:
$xin interfaceSelenideElement- See Also:
-
$x
Description copied from interface:SelenideElementLocates the Nth matching element inside given element using xpath locator- Specified by:
$xin interfaceSelenideElement- See Also:
-
findAll
Description copied from interface:SelenideElementShort form ofwebDriver.findElements(thisElement, By.cssSelector(cssSelector))For example,
$("#multirowTable").findAll("tr.active").shouldHave(size(2));- Specified by:
findAllin interfaceSelenideElement- Returns:
- list of elements inside given element matching given CSS selector
- See Also:
-
findAll
Description copied from interface:SelenideElementShort form ofwebDriver.findElements(thisElement, selector)For example,
$("#multirowTable").findAll(By.className("active")).shouldHave(size(2));- Specified by:
findAllin interfaceSelenideElement- Returns:
- list of elements inside given element matching given criteria
- See Also:
-
$$
Description copied from interface:SelenideElementSame asSelenideElement.findAll(String)- Specified by:
$$in interfaceSelenideElement- See Also:
-
$$
Description copied from interface:SelenideElementSame asSelenideElement.findAll(By)- Specified by:
$$in interfaceSelenideElement
-
$$x
Description copied from interface:SelenideElementShort form ofwebDriver.findElements(thisElement, By.xpath(xpath))For example,
$("#multirowTable").$$x("./input").shouldHave(size(2));- Specified by:
$$xin interfaceSelenideElement- Returns:
- list of elements inside given element matching given xpath locator
- See Also:
-