-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIElementUtilitiesAdditions.h
More file actions
45 lines (26 loc) · 1.54 KB
/
UIElementUtilitiesAdditions.h
File metadata and controls
45 lines (26 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// UIElementUtilitiesAdditions.h
// AXRecord
//
// Created by Sylvain Malacria on 15/03/16.
// Copyright © 2016 Sylvain Malacria. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface UIElementUtilitiesAdditions : NSObject
/* Custom method for logging only what we are interested in */
+ (NSString *)stringDescriptionOfRelevantUIElementsBeingVerbose:(AXUIElementRef)element;
/*Custom method returning AXElementRef located at some point */
+ (AXUIElementRef)elementAtCGPoint:(CGPoint)pointAsCGPoint withSystemWideElement:(AXUIElementRef)systemWideElement;
/*Custom method returning an NSArray* of all ancestors of a given element*/
+(NSArray*)arrayOfAncestorsOfElement:(AXUIElementRef)element;
/*Custom methods used for getting all relevant information of an element has an "opening" XML item*/
/*Still have to close the XML bracket at some points, unless we use the "beingselfclosed" version which selfclose the XML node */
+(NSString*)relevantXMLDescriptionOfElement:(AXUIElementRef)element;
+(NSString*)relevantXMLDescriptionOfElement:(AXUIElementRef)element beingSelfClosed:(BOOL)selfclosed;
+(NSString*)XMLDescriptionOfElement:(AXUIElementRef)element;
+ (NSString *)XMLDescriptionOfElement:(AXUIElementRef)element beingSelfClosed:(BOOL)selfclosed;
+(BOOL) isRelevantActionContainedInArrayOfActions:(NSArray*)listOfActions;
+(BOOL)isRelevantRole:(NSString*)elementRole;
/* Custom methods testing whether or not the specific attribute exist*/
+(BOOL)hasGivenElement:(AXUIElementRef)element attribute:(NSString*)attribute;
@end