appium-webdriveragent 4.9.0 → 4.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
{
|
|
19
19
|
self = [super init];
|
|
20
20
|
self->_value = @"magicValue";
|
|
21
|
+
self->_label = @"testLabel";
|
|
21
22
|
return self;
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -36,11 +37,6 @@
|
|
|
36
37
|
return @"testTitle";
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
- (NSString *)label
|
|
40
|
-
{
|
|
41
|
-
return @"testLabel";
|
|
42
|
-
}
|
|
43
|
-
|
|
44
40
|
- (XCUIElementType)elementType
|
|
45
41
|
{
|
|
46
42
|
return XCUIElementTypeOther;
|
|
@@ -83,12 +83,13 @@
|
|
|
83
83
|
{
|
|
84
84
|
XCElementSnapshotDouble *snapshot = [XCElementSnapshotDouble new];
|
|
85
85
|
snapshot.value = @"йоло<>&\"";
|
|
86
|
+
snapshot.label = @"a\nb";
|
|
86
87
|
id<FBElement> element = (id<FBElement>)[FBXCElementSnapshotWrapper ensureWrapped:(id)snapshot];
|
|
87
88
|
NSString *resultXml = [self xmlStringWithElement:element
|
|
88
89
|
xpathQuery:[NSString stringWithFormat:@"//%@[@*]", element.wdType]
|
|
89
90
|
excludingAttributes:@[@"visible"]];
|
|
90
91
|
NSString *expectedXml = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<%@ type=\"%@\" value=\"%@\" name=\"%@\" label=\"%@\" enabled=\"%@\" visible=\"%@\" accessible=\"%@\" x=\"%@\" y=\"%@\" width=\"%@\" height=\"%@\" index=\"%lu\" private_indexPath=\"top\"/>\n",
|
|
91
|
-
element.wdType, element.wdType, @"йоло<>&"", element.wdName,
|
|
92
|
+
element.wdType, element.wdType, @"йоло<>&"", element.wdName, @"a b", element.wdEnabled ? @"true" : @"false", element.wdVisible ? @"true" : @"false", element.wdAccessible ? @"true" : @"false", element.wdRect[@"x"], element.wdRect[@"y"], element.wdRect[@"width"], element.wdRect[@"height"], element.wdIndex];
|
|
92
93
|
XCTAssertTrue([resultXml isEqualToString:expectedXml]);
|
|
93
94
|
}
|
|
94
95
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-webdriveragent",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.1",
|
|
4
4
|
"description": "Package bundling WebDriverAgent",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"appium-ios-simulator": "^4.0.0",
|
|
88
88
|
"async-lock": "^1.0.0",
|
|
89
89
|
"asyncbox": "^2.5.3",
|
|
90
|
-
"axios": "^
|
|
90
|
+
"axios": "^1.x",
|
|
91
91
|
"bluebird": "^3.5.5",
|
|
92
92
|
"lodash": "^4.17.11",
|
|
93
93
|
"node-simctl": "^7.0.1",
|