XCUIElementTypeQueryProvider API

来源:互联网 发布:ddc控制器编程 编辑:程序博客网 时间:2024/05/21 22:59

协议类,XCUIElement遵守的协议

变量

该协议中定义了76个变量,与XCUIElementType定义的枚举元素相比少了3个:Any,Unknown,Application.原因也很明显,因为XCUIApplication也遵循该协议,所以Application对象包含XCUIElementTypeQueryProvider定义的所有属性,所以要过滤掉以上三个大于Application的类型。

源码

Swift

protocol XCUIElementTypeQueryProvider {    @NSCopying var groups: XCUIElementQuery { get }    @NSCopying var windows: XCUIElementQuery { get }    @NSCopying var sheets: XCUIElementQuery { get }    @NSCopying var drawers: XCUIElementQuery { get }    @NSCopying var alerts: XCUIElementQuery { get }    @NSCopying var dialogs: XCUIElementQuery { get }    @NSCopying var buttons: XCUIElementQuery { get }    @NSCopying var radioButtons: XCUIElementQuery { get }    @NSCopying var radioGroups: XCUIElementQuery { get }    @NSCopying var checkBoxes: XCUIElementQuery { get }    @NSCopying var disclosureTriangles: XCUIElementQuery { get }    @NSCopying var popUpButtons: XCUIElementQuery { get }    @NSCopying var comboBoxes: XCUIElementQuery { get }    @NSCopying var menuButtons: XCUIElementQuery { get }    @NSCopying var toolbarButtons: XCUIElementQuery { get }    @NSCopying var popovers: XCUIElementQuery { get }    @NSCopying var keyboards: XCUIElementQuery { get }    @NSCopying var keys: XCUIElementQuery { get }    @NSCopying var navigationBars: XCUIElementQuery { get }    @NSCopying var tabBars: XCUIElementQuery { get }    @NSCopying var tabGroups: XCUIElementQuery { get }    @NSCopying var toolbars: XCUIElementQuery { get }    @NSCopying var statusBars: XCUIElementQuery { get }    @NSCopying var tables: XCUIElementQuery { get }    @NSCopying var tableRows: XCUIElementQuery { get }    @NSCopying var tableColumns: XCUIElementQuery { get }    @NSCopying var outlines: XCUIElementQuery { get }    @NSCopying var outlineRows: XCUIElementQuery { get }    @NSCopying var browsers: XCUIElementQuery { get }    @NSCopying var collectionViews: XCUIElementQuery { get }    @NSCopying var sliders: XCUIElementQuery { get }    @NSCopying var pageIndicators: XCUIElementQuery { get }    @NSCopying var progressIndicators: XCUIElementQuery { get }    @NSCopying var activityIndicators: XCUIElementQuery { get }    @NSCopying var segmentedControls: XCUIElementQuery { get }    @NSCopying var pickers: XCUIElementQuery { get }    @NSCopying var pickerWheels: XCUIElementQuery { get }    @NSCopying var switches: XCUIElementQuery { get }    @NSCopying var toggles: XCUIElementQuery { get }    @NSCopying var links: XCUIElementQuery { get }    @NSCopying var images: XCUIElementQuery { get }    @NSCopying var icons: XCUIElementQuery { get }    @NSCopying var searchFields: XCUIElementQuery { get }    @NSCopying var scrollViews: XCUIElementQuery { get }    @NSCopying var scrollBars: XCUIElementQuery { get }    @NSCopying var staticTexts: XCUIElementQuery { get }    @NSCopying var textFields: XCUIElementQuery { get }    @NSCopying var dateFields: XCUIElementQuery { get }    @NSCopying var timeFields: XCUIElementQuery { get }    @NSCopying var textViews: XCUIElementQuery { get }    @NSCopying var menus: XCUIElementQuery { get }    @NSCopying var menuItems: XCUIElementQuery { get }    @NSCopying var menuBars: XCUIElementQuery { get }    @NSCopying var menuBarItems: XCUIElementQuery { get }    @NSCopying var maps: XCUIElementQuery { get }    @NSCopying var webViews: XCUIElementQuery { get }    @NSCopying var incrementArrows: XCUIElementQuery { get }    @NSCopying var decrementArrows: XCUIElementQuery { get }    @NSCopying var timelines: XCUIElementQuery { get }    @NSCopying var ratingIndicators: XCUIElementQuery { get }    @NSCopying var valueIndicators: XCUIElementQuery { get }    @NSCopying var splitGroups: XCUIElementQuery { get }    @NSCopying var splitters: XCUIElementQuery { get }    @NSCopying var relevanceIndicators: XCUIElementQuery { get }    @NSCopying var colorWells: XCUIElementQuery { get }    @NSCopying var helpTags: XCUIElementQuery { get }    @NSCopying var mattes: XCUIElementQuery { get }    @NSCopying var dockItems: XCUIElementQuery { get }    @NSCopying var rulers: XCUIElementQuery { get }    @NSCopying var rulerMarkers: XCUIElementQuery { get }    @NSCopying var grids: XCUIElementQuery { get }    @NSCopying var levelIndicators: XCUIElementQuery { get }    @NSCopying var cells: XCUIElementQuery { get }    @NSCopying var layoutAreas: XCUIElementQuery { get }    @NSCopying var layoutItems: XCUIElementQuery { get }    @NSCopying var handles: XCUIElementQuery { get }}

OC

@protocol XCUIElementTypeQueryProvider@property (readonly, copy) XCUIElementQuery *groups;@property (readonly, copy) XCUIElementQuery *windows;@property (readonly, copy) XCUIElementQuery *sheets;@property (readonly, copy) XCUIElementQuery *drawers;@property (readonly, copy) XCUIElementQuery *alerts;@property (readonly, copy) XCUIElementQuery *dialogs;@property (readonly, copy) XCUIElementQuery *buttons;@property (readonly, copy) XCUIElementQuery *radioButtons;@property (readonly, copy) XCUIElementQuery *radioGroups;@property (readonly, copy) XCUIElementQuery *checkBoxes;@property (readonly, copy) XCUIElementQuery *disclosureTriangles;@property (readonly, copy) XCUIElementQuery *popUpButtons;@property (readonly, copy) XCUIElementQuery *comboBoxes;@property (readonly, copy) XCUIElementQuery *menuButtons;@property (readonly, copy) XCUIElementQuery *toolbarButtons;@property (readonly, copy) XCUIElementQuery *popovers;@property (readonly, copy) XCUIElementQuery *keyboards;@property (readonly, copy) XCUIElementQuery *keys;@property (readonly, copy) XCUIElementQuery *navigationBars;@property (readonly, copy) XCUIElementQuery *tabBars;@property (readonly, copy) XCUIElementQuery *tabGroups;@property (readonly, copy) XCUIElementQuery *toolbars;@property (readonly, copy) XCUIElementQuery *statusBars;@property (readonly, copy) XCUIElementQuery *tables;@property (readonly, copy) XCUIElementQuery *tableRows;@property (readonly, copy) XCUIElementQuery *tableColumns;@property (readonly, copy) XCUIElementQuery *outlines;@property (readonly, copy) XCUIElementQuery *outlineRows;@property (readonly, copy) XCUIElementQuery *browsers;@property (readonly, copy) XCUIElementQuery *collectionViews;@property (readonly, copy) XCUIElementQuery *sliders;@property (readonly, copy) XCUIElementQuery *pageIndicators;@property (readonly, copy) XCUIElementQuery *progressIndicators;@property (readonly, copy) XCUIElementQuery *activityIndicators;@property (readonly, copy) XCUIElementQuery *segmentedControls;@property (readonly, copy) XCUIElementQuery *pickers;@property (readonly, copy) XCUIElementQuery *pickerWheels;@property (readonly, copy) XCUIElementQuery *switches;@property (readonly, copy) XCUIElementQuery *toggles;@property (readonly, copy) XCUIElementQuery *links;@property (readonly, copy) XCUIElementQuery *images;@property (readonly, copy) XCUIElementQuery *icons;@property (readonly, copy) XCUIElementQuery *searchFields;@property (readonly, copy) XCUIElementQuery *scrollViews;@property (readonly, copy) XCUIElementQuery *scrollBars;@property (readonly, copy) XCUIElementQuery *staticTexts;@property (readonly, copy) XCUIElementQuery *textFields;@property (readonly, copy) XCUIElementQuery *dateFields;@property (readonly, copy) XCUIElementQuery *timeFields;@property (readonly, copy) XCUIElementQuery *textViews;@property (readonly, copy) XCUIElementQuery *menus;@property (readonly, copy) XCUIElementQuery *menuItems;@property (readonly, copy) XCUIElementQuery *menuBars;@property (readonly, copy) XCUIElementQuery *menuBarItems;@property (readonly, copy) XCUIElementQuery *maps;@property (readonly, copy) XCUIElementQuery *webViews;@property (readonly, copy) XCUIElementQuery *incrementArrows;@property (readonly, copy) XCUIElementQuery *decrementArrows;@property (readonly, copy) XCUIElementQuery *timelines;@property (readonly, copy) XCUIElementQuery *ratingIndicators;@property (readonly, copy) XCUIElementQuery *valueIndicators;@property (readonly, copy) XCUIElementQuery *splitGroups;@property (readonly, copy) XCUIElementQuery *splitters;@property (readonly, copy) XCUIElementQuery *relevanceIndicators;@property (readonly, copy) XCUIElementQuery *colorWells;@property (readonly, copy) XCUIElementQuery *helpTags;@property (readonly, copy) XCUIElementQuery *mattes;@property (readonly, copy) XCUIElementQuery *dockItems;@property (readonly, copy) XCUIElementQuery *rulers;@property (readonly, copy) XCUIElementQuery *rulerMarkers;@property (readonly, copy) XCUIElementQuery *grids;@property (readonly, copy) XCUIElementQuery *levelIndicators;@property (readonly, copy) XCUIElementQuery *cells;@property (readonly, copy) XCUIElementQuery *layoutAreas;@property (readonly, copy) XCUIElementQuery *layoutItems;@property (readonly, copy) XCUIElementQuery *handles;@end
0 0
原创粉丝点击