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 TypeMethodDescriptionGive this element a human-readable name Caution: you probably don't need this method.scroll
(AppiumScrollOptions appiumScrollOptions) scrollTo()
Ask browser to scroll to this elementshould
(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
getCoordinates
Methods inherited from interface com.codeborne.selenide.SelenideElement
$, $, $, $, $$, $$, $$x, $x, $x, ancestor, ancestor, append, attr, cached, clear, click, click, closest, contextClick, data, describe, doubleClick, doubleClick, download, download, download, download, download, dragAndDrop, execute, execute, execute, exists, find, find, find, find, findAll, findAll, 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, selectOption, selectOption, selectOptionByValue, selectOptionContainingText, selectRadio, setSelected, setValue, setValue, sibling, text, toString, toWebElement, type, type, unfocus, uploadFile, uploadFromClasspath, val, val, val
Methods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAs
Methods inherited from interface org.openqa.selenium.WebElement
findElement, findElements, getAccessibleName, getAriaRole, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, isEnabled, isSelected, sendKeys, submit
Methods inherited from interface org.openqa.selenium.WrapsDriver
getWrappedDriver
-
Method Details
-
as
Description copied from interface:SelenideElement
Give 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:
as
in 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:SelenideElement
Ask browser to scroll to this element- Specified by:
scrollTo
in 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:SelenideElement
Wait until given element does NOT meet given condition (with given timeout)- Specified by:
shouldNotBe
in interfaceSelenideElement
- See Also:
-
shouldNotBe
Description copied from interface:SelenideElement
Synonym forSelenideElement.shouldNot(WebElementCondition...)
. Useful for better readability.For example:
$("#errorMessage").shouldNotBe(visible, enabled);
- Specified by:
shouldNotBe
in interfaceSelenideElement
- See Also:
-
shouldNotHave
@CanIgnoreReturnValue SelenideAppiumElement shouldNotHave(WebElementCondition condition, Duration timeout) Description copied from interface:SelenideElement
Wait until given element does NOT meet given condition (with given timeout)- Specified by:
shouldNotHave
in interfaceSelenideElement
- See Also:
-
shouldNotHave
Description copied from interface:SelenideElement
Synonym forSelenideElement.shouldNot(WebElementCondition...)
. Useful for better readability.For example:
$("#errorMessage").shouldNotHave(text("Exception"), text("Error"));
- Specified by:
shouldNotHave
in interfaceSelenideElement
- See Also:
-
shouldNot
@CanIgnoreReturnValue SelenideAppiumElement shouldNot(WebElementCondition condition, Duration timeout) Description copied from interface:SelenideElement
Wait until given element meets given condition (with given timeout)- Specified by:
shouldNot
in interfaceSelenideElement
- See Also:
-
shouldNot
Description copied from interface:SelenideElement
Sequentially 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.timeout
For example:
$("#errorMessage").should(exist);
- Specified by:
shouldNot
in interfaceSelenideElement
- See Also:
-
shouldBe
@CanIgnoreReturnValue SelenideAppiumElement shouldBe(WebElementCondition condition, Duration timeout) Description copied from interface:SelenideElement
Wait until given element meets given condition (with given timeout)- Specified by:
shouldBe
in interfaceSelenideElement
- See Also:
-
shouldBe
Description copied from interface:SelenideElement
Synonym forSelenideElement.should(WebElementCondition...)
. Useful for better readability.For example:
$("#errorMessage").shouldBe(visible, enabled);
- Specified by:
shouldBe
in interfaceSelenideElement
- See Also:
-
shouldHave
@CanIgnoreReturnValue SelenideAppiumElement shouldHave(WebElementCondition condition, Duration timeout) Description copied from interface:SelenideElement
Wait until given element meets given condition (with given timeout)- Specified by:
shouldHave
in interfaceSelenideElement
- See Also:
-
shouldHave
Description copied from interface:SelenideElement
Synonym forSelenideElement.should(WebElementCondition...)
. Useful for better readability.For example:
$("#errorMessage").shouldHave(text("Hello"), text("World"));
- Specified by:
shouldHave
in interfaceSelenideElement
- See Also:
-
should
Description copied from interface:SelenideElement
Wait until given element meets given condition (with given timeout)- Specified by:
should
in interfaceSelenideElement
- See Also:
-
should
Description copied from interface:SelenideElement
Sequentially 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.timeout
For example:
$("#errorMessage").should(appear);
- Specified by:
should
in interfaceSelenideElement
- Returns:
- Given element, useful for chaining:
$("#errorMessage").should(appear).shouldBe(enabled);
- See Also:
-