Widget (Classic)
Widget is abstract user interface element.
Built-in widget information is as follows.
| widget | corresponding (Android) | corresponding (iOS) |
|---|---|---|
| label | android.widget.TextView | XCUIElementTypeStaticText |
| input | android.widget.EditText | XCUIElementTypeTextField XCUIElementTypeSecureTextField |
| image | android.widget.ImageView | XCUIElementTypeImage |
| button | android.widget.Button android.widget.ImageButton android.widget.CheckBox android.widget.RadioButton |
XCUIElementTypeButton |
| switch | android.widget.Switch | XCUIElementTypeSwitch |
| widget | (all of the above) | (all of the above) |
You can edit this information in element_category.propertiesresource file (not recommended).
#Android
android.labelTypes=android.widget.TextView
android.inputTypes=android.widget.EditText
android.imageTypes=android.widget.ImageView
android.buttonTypes=android.widget.Button|android.widget.ImageButton|android.widget.CheckBox|android.widget.RadioButton
android.switchTypes=android.widget.Switch
android.extraWidgetTypes=
android.scrollableTypes=androidx.recyclerview.widget.RecyclerView|android.support.v7.widget.RecyclerView|android.widget.ScrollView|android.widget.HorizontalScrollView|androidx.viewpager.widget.ViewPager
#iOS
ios.labelTypes=XCUIElementTypeStaticText
ios.inputTypes=XCUIElementTypeTextField|XCUIElementTypeSecureTextField
ios.imageTypes=XCUIElementTypeImage
ios.buttonTypes=XCUIElementTypeButton
ios.switchTypes=XCUIElementTypeSwitch
ios.extraWidgetTypes=
ios.tableTypes=XCUIElementTypeTable
ios.scrollableTypes=XCUIElementTypeTable|XCUIElementTypeCollectionView|XCUIElementTypeScrollView|XCUIElementTypeWebView|XCUIElementTypeMap