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 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
$, $, $, $, $$, $$, $$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, 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:
-