Class AppiumElementDescriber

java.lang.Object
com.codeborne.selenide.appium.AppiumElementDescriber
All Implemented Interfaces:
ElementDescriber

@ParametersAreNonnullByDefault public class AppiumElementDescriber extends Object implements ElementDescriber
Appium-specific element describer.

Sample output:


 Element should have text '666' {By.id: result}
 Element:
  <TextView class="android.widget.TextView" id="com.android.calculator2:id/result" name="6" displayed="true"
            checked="false" enabled="true" focused="false" bounds="[0,183][1080,584]"
            contentDescription="null" package="com.android.calculator2">6</TextView>
 Screenshot: file:/Users/andrei/projects/selenide/build/reports/tests/1599256941895.0.png
 Page source: file:/Users/andrei/projects/selenide/build/reports/tests/1599256941895.0.html
 
 
  • Constructor Details

    • AppiumElementDescriber

      public AppiumElementDescriber()
  • Method Details

    • fully

      @Nonnull @CheckReturnValue public String fully(Driver driver, @Nullable org.openqa.selenium.WebElement element)
      Specified by:
      fully in interface ElementDescriber
    • supportedAttributes

      @Nonnull @CheckReturnValue protected List<String> supportedAttributes(Driver driver)
    • androidAttributes

      @Nonnull @CheckReturnValue protected List<String> androidAttributes()
    • iosAttributes

      @Nonnull @CheckReturnValue protected List<String> iosAttributes()
    • genericAttributes

      @Nonnull @CheckReturnValue protected List<String> genericAttributes()
    • briefly

      @Nonnull @CheckReturnValue public String briefly(Driver driver, org.openqa.selenium.WebElement element)
      Specified by:
      briefly in interface ElementDescriber
    • selector

      @CheckReturnValue @Nonnull public String selector(org.openqa.selenium.By selector)
      Specified by:
      selector in interface ElementDescriber