Annotation Type OverrideWidget


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface OverrideWidget
    This annotation should mark an abstract/certain Widget object class or field that declares some abstract/certain Widget object class. io.appium.java_client.pagefactory.Widget is the Appium-specific extension of the Page Object design pattern. About the Page Object design pattern please read these documents: - https://code.google.com/p/selenium/wiki/PageObjects - https://code.google.com/p/selenium/wiki/PageFactory
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<? extends Widget> androidUIAutomator
      This property is designed for Android native content.
      java.lang.Class<? extends Widget> html
      This property is designed for HTML (browser or web view) content.
      java.lang.Class<? extends Widget> iOSXCUITAutomation
      This property is designed for iOS native content when AutomationName.IOS_XCUI_TEST automation is used.
      java.lang.Class<? extends Widget> windowsAutomation
      This property is designed for Windows native content.
    • Element Detail

      • html

        java.lang.Class<? extends Widget> html
        This property is designed for HTML (browser or web view) content. A declared class should not be abstract. Declared class also should be a subclass of an annotated class/class which is declared by an annotated field.
        Returns:
        a class which extends Widget
        Default:
        io.appium.java_client.pagefactory.Widget.class
      • androidUIAutomator

        java.lang.Class<? extends Widget> androidUIAutomator
        This property is designed for Android native content. A declared class should not be abstract. Declared class also should be a subclass of an annotated class/class which is declared by an annotated field.
        Returns:
        a class which extends Widget
        Default:
        io.appium.java_client.pagefactory.Widget.class
      • iOSXCUITAutomation

        java.lang.Class<? extends Widget> iOSXCUITAutomation
        This property is designed for iOS native content when AutomationName.IOS_XCUI_TEST automation is used. A declared class should not be abstract. Declared class also should be a subclass of an annotated class/class which is declared by an annotated field.
        Returns:
        a class which extends Widget
        Default:
        io.appium.java_client.pagefactory.Widget.class
      • windowsAutomation

        java.lang.Class<? extends Widget> windowsAutomation
        This property is designed for Windows native content. A declared class should not be abstract. Declared class also should be a subclass of an annotated class/class which is declared by an annotated field.
        Returns:
        a class which extends Widget
        Default:
        io.appium.java_client.pagefactory.Widget.class