appium-webdriveragent 16.1.7 → 16.2.0
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.
- package/CHANGELOG.md +6 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBTouchAction.m +1 -1
- package/WebDriverAgentLib/Categories/XCUIApplicationProcess+FBQuiescence.m +4 -4
- package/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m +1 -1
- package/WebDriverAgentLib/Categories/XCUIDevice+FBRotation.m +1 -1
- package/WebDriverAgentLib/Categories/XCUIElement+FBFind.m +1 -1
- package/WebDriverAgentLib/Categories/XCUIElement+FBScrolling.m +1 -1
- package/WebDriverAgentLib/Categories/XCUIElement+FBTVFocuse.m +1 -1
- package/WebDriverAgentLib/Categories/XCUIElement+FBTyping.m +5 -5
- package/WebDriverAgentLib/Categories/XCUIElement+FBUtilities.m +4 -4
- package/WebDriverAgentLib/Categories/XCUIElement+FBWebDriverAttributes.m +1 -1
- package/WebDriverAgentLib/Commands/FBElementCommands.m +3 -3
- package/WebDriverAgentLib/Commands/FBFindElementCommands.m +7 -7
- package/WebDriverAgentLib/Commands/FBSessionCommands.m +10 -10
- package/WebDriverAgentLib/FBAlert.m +7 -7
- package/WebDriverAgentLib/Info.plist +2 -2
- package/WebDriverAgentLib/Routing/FBResponsePayload.m +1 -1
- package/WebDriverAgentLib/Routing/FBSession.m +3 -3
- package/WebDriverAgentLib/Routing/FBWebServer.m +7 -7
- package/WebDriverAgentLib/Utilities/FBConfiguration.h +75 -142
- package/WebDriverAgentLib/Utilities/FBConfiguration.m +128 -374
- package/WebDriverAgentLib/Utilities/FBImageProcessor.m +6 -6
- package/WebDriverAgentLib/Utilities/FBLogger.m +2 -2
- package/WebDriverAgentLib/Utilities/FBMjpegServer.m +4 -4
- package/WebDriverAgentLib/Utilities/FBSettingsHandler.m +65 -61
- package/WebDriverAgentLib/Utilities/FBW3CActionsSynthesizer.m +1 -1
- package/WebDriverAgentLib/Utilities/FBXCTestDaemonsProxy.m +1 -1
- package/WebDriverAgentLib/Utilities/FBXCodeCompatibility.m +2 -2
- package/WebDriverAgentLib/Utilities/FBXPath.m +9 -9
- package/WebDriverAgentRunner/UITestingUITests.m +7 -7
- package/WebDriverAgentTests/IntegrationTests/FBAlertTests.m +5 -5
- package/WebDriverAgentTests/IntegrationTests/FBConfigurationTests.m +5 -5
- package/WebDriverAgentTests/IntegrationTests/FBIntegrationTestCase.m +6 -6
- package/WebDriverAgentTests/IntegrationTests/FBXPathIntegrationTests.m +3 -3
- package/WebDriverAgentTests/IntegrationTests/XCUIElementAttributesTests.m +5 -5
- package/WebDriverAgentTests/UnitTests/FBConfigurationTests.m +8 -8
- package/WebDriverAgentTests/UnitTests/FBSessionTests.m +3 -3
- package/package.json +1 -1
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
|
|
177
177
|
- (void)testCompactResponseYesWithResponseAttributesSet
|
|
178
178
|
{
|
|
179
|
-
|
|
179
|
+
FBConfiguration.sharedInstance.elementResponseAttributes = @"name,text,enabled";
|
|
180
180
|
XCUIElement *alertsButton = self.testedApplication.buttons[@"Alerts"];
|
|
181
181
|
NSDictionary *fields = FBDictionaryResponseWithElement(alertsButton, YES);
|
|
182
182
|
XCTAssertNotNil(fields[@"ELEMENT"]);
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
|
|
187
187
|
- (void)testCompactResponseNoWithResponseAttributesSet
|
|
188
188
|
{
|
|
189
|
-
|
|
189
|
+
FBConfiguration.sharedInstance.elementResponseAttributes = @"name,text,enabled";
|
|
190
190
|
XCUIElement *alertsButton = self.testedApplication.buttons[@"Alerts"];
|
|
191
191
|
NSDictionary *fields = FBDictionaryResponseWithElement(alertsButton, NO);
|
|
192
192
|
XCTAssertNotNil(fields[@"ELEMENT"]);
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
|
|
200
200
|
- (void)testInvalidAttribute
|
|
201
201
|
{
|
|
202
|
-
|
|
202
|
+
FBConfiguration.sharedInstance.elementResponseAttributes = @"invalid_field,name";
|
|
203
203
|
XCUIElement *alertsButton = self.testedApplication.buttons[@"Alerts"];
|
|
204
204
|
NSDictionary *fields = FBDictionaryResponseWithElement(alertsButton, NO);
|
|
205
205
|
XCTAssertNotNil(fields[@"ELEMENT"]);
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
|
|
211
211
|
- (void)testKnownAttributes
|
|
212
212
|
{
|
|
213
|
-
|
|
213
|
+
FBConfiguration.sharedInstance.elementResponseAttributes = @"name,type,label,text,rect,enabled,displayed,selected";
|
|
214
214
|
XCUIElement *alertsButton = self.testedApplication.buttons[@"Alerts"];
|
|
215
215
|
NSDictionary *fields = FBDictionaryResponseWithElement(alertsButton, NO);
|
|
216
216
|
XCTAssertNotNil(fields[@"ELEMENT"]);
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
|
|
229
229
|
- (void)testArbitraryAttributes
|
|
230
230
|
{
|
|
231
|
-
|
|
231
|
+
FBConfiguration.sharedInstance.elementResponseAttributes = @"attribute/name,attribute/value";
|
|
232
232
|
XCUIElement *alertsButton = self.testedApplication.buttons[@"Alerts"];
|
|
233
233
|
NSDictionary *fields = FBDictionaryResponseWithElement(alertsButton, NO);
|
|
234
234
|
XCTAssertNotNil(fields[@"ELEMENT"]);
|
|
@@ -27,46 +27,46 @@
|
|
|
27
27
|
|
|
28
28
|
- (void)testBindingPortDefault
|
|
29
29
|
{
|
|
30
|
-
XCTAssertTrue(NSEqualRanges(
|
|
30
|
+
XCTAssertTrue(NSEqualRanges(FBConfiguration.sharedInstance.bindingPortRange, NSMakeRange(8100, 100)));
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
- (void)testBindingPortEnvironmentOverwrite
|
|
34
34
|
{
|
|
35
35
|
setenv("USE_PORT", "1000", 1);
|
|
36
|
-
XCTAssertTrue(NSEqualRanges(
|
|
36
|
+
XCTAssertTrue(NSEqualRanges(FBConfiguration.sharedInstance.bindingPortRange, NSMakeRange(1000, 1)));
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
- (void)testVerboseLoggingDefault
|
|
40
40
|
{
|
|
41
|
-
XCTAssertFalse(
|
|
41
|
+
XCTAssertFalse(FBConfiguration.sharedInstance.verboseLoggingEnabled);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
- (void)testVerboseLoggingEnvironmentOverwrite
|
|
45
45
|
{
|
|
46
46
|
setenv("VERBOSE_LOGGING", "YES", 1);
|
|
47
|
-
XCTAssertTrue(
|
|
47
|
+
XCTAssertTrue(FBConfiguration.sharedInstance.verboseLoggingEnabled);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
- (void)testBindingIPDefault
|
|
51
51
|
{
|
|
52
|
-
XCTAssertNil(
|
|
52
|
+
XCTAssertNil(FBConfiguration.sharedInstance.bindingIPAddress);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
- (void)testBindingIPEnvironmentOverwrite
|
|
56
56
|
{
|
|
57
57
|
setenv("USE_IP", "192.168.1.100", 1);
|
|
58
|
-
XCTAssertEqualObjects(
|
|
58
|
+
XCTAssertEqualObjects(FBConfiguration.sharedInstance.bindingIPAddress, @"192.168.1.100");
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
- (void)testHttpRequestBodySizeLimitDefault
|
|
62
62
|
{
|
|
63
|
-
XCTAssertEqual(
|
|
63
|
+
XCTAssertEqual(FBConfiguration.sharedInstance.httpRequestBodySizeLimit, 1024ull * 1024ull * 1024ull);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
- (void)testHttpRequestBodySizeLimitEnvironmentOverwrite
|
|
67
67
|
{
|
|
68
68
|
setenv("MAX_HTTP_REQUEST_BODY_SIZE", "1024", 1);
|
|
69
|
-
XCTAssertEqual(
|
|
69
|
+
XCTAssertEqual(FBConfiguration.sharedInstance.httpRequestBodySizeLimit, 1024ull);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
@end
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
{
|
|
25
25
|
[super setUp];
|
|
26
26
|
self.testedApplication = (id)XCUIApplicationDouble.new;
|
|
27
|
-
self.shouldTerminateAppValue = FBConfiguration.shouldTerminateApp;
|
|
28
|
-
|
|
27
|
+
self.shouldTerminateAppValue = FBConfiguration.sharedInstance.shouldTerminateApp;
|
|
28
|
+
FBConfiguration.sharedInstance.shouldTerminateApp = NO;
|
|
29
29
|
self.session = [FBSession initWithApplication:self.testedApplication];
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
- (void)tearDown
|
|
33
33
|
{
|
|
34
34
|
[self.session kill];
|
|
35
|
-
|
|
35
|
+
FBConfiguration.sharedInstance.shouldTerminateApp = self.shouldTerminateAppValue;
|
|
36
36
|
[super tearDown];
|
|
37
37
|
}
|
|
38
38
|
|