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 public String fully(Driver driver, @Nullable org.openqa.selenium.WebElement element)
      Specified by:
      fully in interface ElementDescriber
    • supportedAttributes

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

      protected List<String> androidAttributes()
    • iosAttributes

      protected List<String> iosAttributes()
    • genericAttributes

      protected List<String> genericAttributes()
    • briefly

      @Nonnull public String briefly(Driver driver, @Nonnull 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