appium-webdriveragent 6.1.1 → 7.0.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 +13 -0
- package/WebDriverAgent.xcodeproj/project.pbxproj +0 -20
- package/WebDriverAgentLib/Categories/XCUIApplication+FBTouchAction.h +0 -37
- package/WebDriverAgentLib/Categories/XCUIApplication+FBTouchAction.m +0 -15
- package/WebDriverAgentLib/Commands/FBTouchActionCommands.m +0 -13
- package/package.json +1 -1
- package/WebDriverAgentLib/Utilities/FBAppiumActionsSynthesizer.h +0 -20
- package/WebDriverAgentLib/Utilities/FBAppiumActionsSynthesizer.m +0 -554
- package/WebDriverAgentTests/IntegrationTests/FBAppiumMultiTouchActionsIntegrationTests.m +0 -206
- package/WebDriverAgentTests/IntegrationTests/FBAppiumTouchActionsIntegrationTests.m +0 -404
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## [7.0.0](https://github.com/appium/WebDriverAgent/compare/v6.1.1...v7.0.0) (2024-02-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### ⚠ BREAKING CHANGES
|
|
5
|
+
|
|
6
|
+
* The following REST endpoints have been removed, use W3C actions instead:
|
|
7
|
+
- /wda/touch/perform
|
|
8
|
+
- /wda/touch/multi/perform
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* Remove obsolete MJSONWP touch actions ([#847](https://github.com/appium/WebDriverAgent/issues/847)) ([d77f640](https://github.com/appium/WebDriverAgent/commit/d77f640867155fddbbbc9575f0a77802602865e7))
|
|
13
|
+
|
|
1
14
|
## [6.1.1](https://github.com/appium/WebDriverAgent/compare/v6.1.0...v6.1.1) (2024-02-11)
|
|
2
15
|
|
|
3
16
|
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
641EE5DA2240C5CA00173FCB /* XCUIApplicationProcessDelay.m in Sources */ = {isa = PBXBuildFile; fileRef = 6385F4A5220A40760095BBDB /* XCUIApplicationProcessDelay.m */; };
|
|
50
50
|
641EE5DB2240C5CA00173FCB /* FBXPath.m in Sources */ = {isa = PBXBuildFile; fileRef = 711084431DA3AA7500F913D6 /* FBXPath.m */; };
|
|
51
51
|
641EE5DC2240C5CA00173FCB /* XCUIApplication+FBAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 719CD8FB2126C88B00C7D0C2 /* XCUIApplication+FBAlert.m */; };
|
|
52
|
-
641EE5DD2240C5CA00173FCB /* FBAppiumActionsSynthesizer.m in Sources */ = {isa = PBXBuildFile; fileRef = 71241D771FAE31F100B9559F /* FBAppiumActionsSynthesizer.m */; };
|
|
53
52
|
641EE5DE2240C5CA00173FCB /* XCUIApplication+FBTouchAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 71BD20721F86116100B36EC2 /* XCUIApplication+FBTouchAction.m */; };
|
|
54
53
|
641EE5DF2240C5CA00173FCB /* FBWebServer.m in Sources */ = {isa = PBXBuildFile; fileRef = EE9AB78D1CAEDF0C008C271F /* FBWebServer.m */; };
|
|
55
54
|
641EE5E02240C5CA00173FCB /* FBTCPSocket.m in Sources */ = {isa = PBXBuildFile; fileRef = 715557D2211DBCE700613B26 /* FBTCPSocket.m */; };
|
|
@@ -269,7 +268,6 @@
|
|
|
269
268
|
641EE6D82240C5CA00173FCB /* XCUIElement.h in Headers */ = {isa = PBXBuildFile; fileRef = EE35ACFE1E3B77D600A02D78 /* XCUIElement.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
270
269
|
641EE6D92240C5CA00173FCB /* XCKeyboardInputSolver.h in Headers */ = {isa = PBXBuildFile; fileRef = EE35ACBE1E3B77D600A02D78 /* XCKeyboardInputSolver.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
271
270
|
641EE6DB2240C5CA00173FCB /* FBPasteboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 71930C4020662E1F00D3AFEC /* FBPasteboard.h */; };
|
|
272
|
-
641EE6DC2240C5CA00173FCB /* FBAppiumActionsSynthesizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 714097451FAE1B32008FB2C5 /* FBAppiumActionsSynthesizer.h */; };
|
|
273
271
|
641EE6DD2240C5CA00173FCB /* FBDebugLogDelegateDecorator.h in Headers */ = {isa = PBXBuildFile; fileRef = EE7E27181D06C69F001BEC7B /* FBDebugLogDelegateDecorator.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
274
272
|
641EE6DE2240C5CA00173FCB /* XCUIDevice+FBHealthCheck.h in Headers */ = {isa = PBXBuildFile; fileRef = EEDFE11F1D9C06F800E6FFE5 /* XCUIDevice+FBHealthCheck.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
275
273
|
641EE6DF2240C5CA00173FCB /* FBMjpegServer.h in Headers */ = {isa = PBXBuildFile; fileRef = 7155D701211DCEF400166C20 /* FBMjpegServer.h */; };
|
|
@@ -318,7 +316,6 @@
|
|
|
318
316
|
7119E1EC1E891F8600D0B125 /* FBPickerWheelSelectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7119E1EB1E891F8600D0B125 /* FBPickerWheelSelectTests.m */; };
|
|
319
317
|
711CD03425ED1106001C01D2 /* XCUIScreenDataSource-Protocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 711CD03325ED1106001C01D2 /* XCUIScreenDataSource-Protocol.h */; };
|
|
320
318
|
711CD03525ED1106001C01D2 /* XCUIScreenDataSource-Protocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 711CD03325ED1106001C01D2 /* XCUIScreenDataSource-Protocol.h */; };
|
|
321
|
-
71241D781FAE31F100B9559F /* FBAppiumActionsSynthesizer.m in Sources */ = {isa = PBXBuildFile; fileRef = 71241D771FAE31F100B9559F /* FBAppiumActionsSynthesizer.m */; };
|
|
322
319
|
71241D7B1FAE3D2500B9559F /* FBTouchActionCommands.h in Headers */ = {isa = PBXBuildFile; fileRef = 71241D791FAE3D2500B9559F /* FBTouchActionCommands.h */; };
|
|
323
320
|
71241D7C1FAE3D2500B9559F /* FBTouchActionCommands.m in Sources */ = {isa = PBXBuildFile; fileRef = 71241D7A1FAE3D2500B9559F /* FBTouchActionCommands.m */; };
|
|
324
321
|
71241D7E1FAF084E00B9559F /* FBW3CTouchActionsIntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 71241D7D1FAF084E00B9559F /* FBW3CTouchActionsIntegrationTests.m */; };
|
|
@@ -336,7 +333,6 @@
|
|
|
336
333
|
713C6DCF1DDC772A00285B92 /* FBElementUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 713C6DCD1DDC772A00285B92 /* FBElementUtils.h */; };
|
|
337
334
|
713C6DD01DDC772A00285B92 /* FBElementUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 713C6DCE1DDC772A00285B92 /* FBElementUtils.m */; };
|
|
338
335
|
714097431FAE1B0B008FB2C5 /* FBBaseActionsSynthesizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 714097411FAE1B0B008FB2C5 /* FBBaseActionsSynthesizer.h */; };
|
|
339
|
-
714097471FAE1B32008FB2C5 /* FBAppiumActionsSynthesizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 714097451FAE1B32008FB2C5 /* FBAppiumActionsSynthesizer.h */; };
|
|
340
336
|
7140974B1FAE1B51008FB2C5 /* FBW3CActionsSynthesizer.h in Headers */ = {isa = PBXBuildFile; fileRef = 714097491FAE1B51008FB2C5 /* FBW3CActionsSynthesizer.h */; };
|
|
341
337
|
7140974C1FAE1B51008FB2C5 /* FBW3CActionsSynthesizer.m in Sources */ = {isa = PBXBuildFile; fileRef = 7140974A1FAE1B51008FB2C5 /* FBW3CActionsSynthesizer.m */; };
|
|
342
338
|
7140974E1FAE20EE008FB2C5 /* FBBaseActionsSynthesizer.m in Sources */ = {isa = PBXBuildFile; fileRef = 7140974D1FAE20EE008FB2C5 /* FBBaseActionsSynthesizer.m */; };
|
|
@@ -432,7 +428,6 @@
|
|
|
432
428
|
71930C4220662E1F00D3AFEC /* FBPasteboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 71930C4020662E1F00D3AFEC /* FBPasteboard.h */; };
|
|
433
429
|
71930C4320662E1F00D3AFEC /* FBPasteboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 71930C4120662E1F00D3AFEC /* FBPasteboard.m */; };
|
|
434
430
|
71930C472066434000D3AFEC /* FBPasteboardTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 71930C462066434000D3AFEC /* FBPasteboardTests.m */; };
|
|
435
|
-
719A97AC1F88E7370063B4BD /* FBAppiumMultiTouchActionsIntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 719A97AB1F88E7370063B4BD /* FBAppiumMultiTouchActionsIntegrationTests.m */; };
|
|
436
431
|
719CD8F82126C78F00C7D0C2 /* FBAlertsMonitor.h in Headers */ = {isa = PBXBuildFile; fileRef = 719CD8F62126C78F00C7D0C2 /* FBAlertsMonitor.h */; };
|
|
437
432
|
719CD8F92126C78F00C7D0C2 /* FBAlertsMonitor.m in Sources */ = {isa = PBXBuildFile; fileRef = 719CD8F72126C78F00C7D0C2 /* FBAlertsMonitor.m */; };
|
|
438
433
|
719CD8FC2126C88B00C7D0C2 /* XCUIApplication+FBAlert.h in Headers */ = {isa = PBXBuildFile; fileRef = 719CD8FA2126C88B00C7D0C2 /* XCUIApplication+FBAlert.h */; };
|
|
@@ -464,7 +459,6 @@
|
|
|
464
459
|
71B49EC81ED1A58100D51AD6 /* XCUIElement+FBUID.m in Sources */ = {isa = PBXBuildFile; fileRef = 71B49EC61ED1A58100D51AD6 /* XCUIElement+FBUID.m */; };
|
|
465
460
|
71BD20731F86116100B36EC2 /* XCUIApplication+FBTouchAction.h in Headers */ = {isa = PBXBuildFile; fileRef = 71BD20711F86116100B36EC2 /* XCUIApplication+FBTouchAction.h */; };
|
|
466
461
|
71BD20741F86116100B36EC2 /* XCUIApplication+FBTouchAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 71BD20721F86116100B36EC2 /* XCUIApplication+FBTouchAction.m */; };
|
|
467
|
-
71BD20781F869E0F00B36EC2 /* FBAppiumTouchActionsIntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 71BD20771F869E0F00B36EC2 /* FBAppiumTouchActionsIntegrationTests.m */; };
|
|
468
462
|
71C8E55125399A6B008572C1 /* XCUIApplication+FBQuiescence.h in Headers */ = {isa = PBXBuildFile; fileRef = 71C8E54F25399A6B008572C1 /* XCUIApplication+FBQuiescence.h */; };
|
|
469
463
|
71C8E55225399A6B008572C1 /* XCUIApplication+FBQuiescence.h in Headers */ = {isa = PBXBuildFile; fileRef = 71C8E54F25399A6B008572C1 /* XCUIApplication+FBQuiescence.h */; };
|
|
470
464
|
71C8E55325399A6B008572C1 /* XCUIApplication+FBQuiescence.m in Sources */ = {isa = PBXBuildFile; fileRef = 71C8E55025399A6B008572C1 /* XCUIApplication+FBQuiescence.m */; };
|
|
@@ -940,7 +934,6 @@
|
|
|
940
934
|
7119097B2152580600BA3C7E /* XCUIScreen.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XCUIScreen.h; sourceTree = "<group>"; };
|
|
941
935
|
7119E1EB1E891F8600D0B125 /* FBPickerWheelSelectTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FBPickerWheelSelectTests.m; sourceTree = "<group>"; };
|
|
942
936
|
711CD03325ED1106001C01D2 /* XCUIScreenDataSource-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "XCUIScreenDataSource-Protocol.h"; sourceTree = "<group>"; };
|
|
943
|
-
71241D771FAE31F100B9559F /* FBAppiumActionsSynthesizer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBAppiumActionsSynthesizer.m; sourceTree = "<group>"; };
|
|
944
937
|
71241D791FAE3D2500B9559F /* FBTouchActionCommands.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FBTouchActionCommands.h; sourceTree = "<group>"; };
|
|
945
938
|
71241D7A1FAE3D2500B9559F /* FBTouchActionCommands.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBTouchActionCommands.m; sourceTree = "<group>"; };
|
|
946
939
|
71241D7D1FAF084E00B9559F /* FBW3CTouchActionsIntegrationTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBW3CTouchActionsIntegrationTests.m; sourceTree = "<group>"; };
|
|
@@ -958,7 +951,6 @@
|
|
|
958
951
|
713C6DCD1DDC772A00285B92 /* FBElementUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FBElementUtils.h; sourceTree = "<group>"; };
|
|
959
952
|
713C6DCE1DDC772A00285B92 /* FBElementUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FBElementUtils.m; sourceTree = "<group>"; };
|
|
960
953
|
714097411FAE1B0B008FB2C5 /* FBBaseActionsSynthesizer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FBBaseActionsSynthesizer.h; sourceTree = "<group>"; };
|
|
961
|
-
714097451FAE1B32008FB2C5 /* FBAppiumActionsSynthesizer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FBAppiumActionsSynthesizer.h; sourceTree = "<group>"; };
|
|
962
954
|
714097491FAE1B51008FB2C5 /* FBW3CActionsSynthesizer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FBW3CActionsSynthesizer.h; sourceTree = "<group>"; };
|
|
963
955
|
7140974A1FAE1B51008FB2C5 /* FBW3CActionsSynthesizer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBW3CActionsSynthesizer.m; sourceTree = "<group>"; };
|
|
964
956
|
7140974D1FAE20EE008FB2C5 /* FBBaseActionsSynthesizer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBBaseActionsSynthesizer.m; sourceTree = "<group>"; };
|
|
@@ -1018,7 +1010,6 @@
|
|
|
1018
1010
|
71930C4020662E1F00D3AFEC /* FBPasteboard.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FBPasteboard.h; sourceTree = "<group>"; };
|
|
1019
1011
|
71930C4120662E1F00D3AFEC /* FBPasteboard.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBPasteboard.m; sourceTree = "<group>"; };
|
|
1020
1012
|
71930C462066434000D3AFEC /* FBPasteboardTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBPasteboardTests.m; sourceTree = "<group>"; };
|
|
1021
|
-
719A97AB1F88E7370063B4BD /* FBAppiumMultiTouchActionsIntegrationTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBAppiumMultiTouchActionsIntegrationTests.m; sourceTree = "<group>"; };
|
|
1022
1013
|
719CD8F62126C78F00C7D0C2 /* FBAlertsMonitor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FBAlertsMonitor.h; sourceTree = "<group>"; };
|
|
1023
1014
|
719CD8F72126C78F00C7D0C2 /* FBAlertsMonitor.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBAlertsMonitor.m; sourceTree = "<group>"; };
|
|
1024
1015
|
719CD8FA2126C88B00C7D0C2 /* XCUIApplication+FBAlert.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XCUIApplication+FBAlert.h"; sourceTree = "<group>"; };
|
|
@@ -1046,7 +1037,6 @@
|
|
|
1046
1037
|
71B49EC61ED1A58100D51AD6 /* XCUIElement+FBUID.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "XCUIElement+FBUID.m"; sourceTree = "<group>"; };
|
|
1047
1038
|
71BD20711F86116100B36EC2 /* XCUIApplication+FBTouchAction.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XCUIApplication+FBTouchAction.h"; sourceTree = "<group>"; };
|
|
1048
1039
|
71BD20721F86116100B36EC2 /* XCUIApplication+FBTouchAction.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "XCUIApplication+FBTouchAction.m"; sourceTree = "<group>"; };
|
|
1049
|
-
71BD20771F869E0F00B36EC2 /* FBAppiumTouchActionsIntegrationTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FBAppiumTouchActionsIntegrationTests.m; sourceTree = "<group>"; };
|
|
1050
1040
|
71C8E54F25399A6B008572C1 /* XCUIApplication+FBQuiescence.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XCUIApplication+FBQuiescence.h"; sourceTree = "<group>"; };
|
|
1051
1041
|
71C8E55025399A6B008572C1 /* XCUIApplication+FBQuiescence.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "XCUIApplication+FBQuiescence.m"; sourceTree = "<group>"; };
|
|
1052
1042
|
71C9EAAA25E8415A00470CD8 /* FBScreenshot.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FBScreenshot.h; sourceTree = "<group>"; };
|
|
@@ -1866,8 +1856,6 @@
|
|
|
1866
1856
|
13815F6E2328D20400CDAB61 /* FBActiveAppDetectionPoint.m */,
|
|
1867
1857
|
719CD8F62126C78F00C7D0C2 /* FBAlertsMonitor.h */,
|
|
1868
1858
|
719CD8F72126C78F00C7D0C2 /* FBAlertsMonitor.m */,
|
|
1869
|
-
714097451FAE1B32008FB2C5 /* FBAppiumActionsSynthesizer.h */,
|
|
1870
|
-
71241D771FAE31F100B9559F /* FBAppiumActionsSynthesizer.m */,
|
|
1871
1859
|
714097411FAE1B0B008FB2C5 /* FBBaseActionsSynthesizer.h */,
|
|
1872
1860
|
7140974D1FAE20EE008FB2C5 /* FBBaseActionsSynthesizer.m */,
|
|
1873
1861
|
714EAA0B2673FDFE005C5B47 /* FBCapabilities.h */,
|
|
@@ -1965,8 +1953,6 @@
|
|
|
1965
1953
|
isa = PBXGroup;
|
|
1966
1954
|
children = (
|
|
1967
1955
|
EE9B76991CF799F400275851 /* FBAlertTests.m */,
|
|
1968
|
-
71BD20771F869E0F00B36EC2 /* FBAppiumTouchActionsIntegrationTests.m */,
|
|
1969
|
-
719A97AB1F88E7370063B4BD /* FBAppiumMultiTouchActionsIntegrationTests.m */,
|
|
1970
1956
|
719CD8FE2126C90200C7D0C2 /* FBAutoAlertsHandlerTests.m */,
|
|
1971
1957
|
EE26409C1D0EBA25009BE6B0 /* FBElementAttributeTests.m */,
|
|
1972
1958
|
71F5BE33252E5B2200EE9EBA /* FBElementSwipingTests.m */,
|
|
@@ -2439,7 +2425,6 @@
|
|
|
2439
2425
|
718226CB2587443700661B83 /* GCDAsyncUdpSocket.h in Headers */,
|
|
2440
2426
|
641EE6DB2240C5CA00173FCB /* FBPasteboard.h in Headers */,
|
|
2441
2427
|
711CD03525ED1106001C01D2 /* XCUIScreenDataSource-Protocol.h in Headers */,
|
|
2442
|
-
641EE6DC2240C5CA00173FCB /* FBAppiumActionsSynthesizer.h in Headers */,
|
|
2443
2428
|
641EE6DD2240C5CA00173FCB /* FBDebugLogDelegateDecorator.h in Headers */,
|
|
2444
2429
|
641EE6DE2240C5CA00173FCB /* XCUIDevice+FBHealthCheck.h in Headers */,
|
|
2445
2430
|
641EE6DF2240C5CA00173FCB /* FBMjpegServer.h in Headers */,
|
|
@@ -2675,7 +2660,6 @@
|
|
|
2675
2660
|
EE35AD6F1E3B77D600A02D78 /* XCUIElement.h in Headers */,
|
|
2676
2661
|
EE35AD2F1E3B77D600A02D78 /* XCKeyboardInputSolver.h in Headers */,
|
|
2677
2662
|
71930C4220662E1F00D3AFEC /* FBPasteboard.h in Headers */,
|
|
2678
|
-
714097471FAE1B32008FB2C5 /* FBAppiumActionsSynthesizer.h in Headers */,
|
|
2679
2663
|
EE7E271C1D06C69F001BEC7B /* FBDebugLogDelegateDecorator.h in Headers */,
|
|
2680
2664
|
EEDFE1211D9C06F800E6FFE5 /* XCUIDevice+FBHealthCheck.h in Headers */,
|
|
2681
2665
|
7155D703211DCEF400166C20 /* FBMjpegServer.h in Headers */,
|
|
@@ -3066,7 +3050,6 @@
|
|
|
3066
3050
|
641EE5DB2240C5CA00173FCB /* FBXPath.m in Sources */,
|
|
3067
3051
|
71C8E55425399A6B008572C1 /* XCUIApplication+FBQuiescence.m in Sources */,
|
|
3068
3052
|
641EE5DC2240C5CA00173FCB /* XCUIApplication+FBAlert.m in Sources */,
|
|
3069
|
-
641EE5DD2240C5CA00173FCB /* FBAppiumActionsSynthesizer.m in Sources */,
|
|
3070
3053
|
641EE70F2240CE4800173FCB /* FBTVNavigationTracker.m in Sources */,
|
|
3071
3054
|
714D88CF2733FB970074A925 /* FBXMLGenerationOptions.m in Sources */,
|
|
3072
3055
|
641EE5DE2240C5CA00173FCB /* XCUIApplication+FBTouchAction.m in Sources */,
|
|
@@ -3180,7 +3163,6 @@
|
|
|
3180
3163
|
711084451DA3AA7500F913D6 /* FBXPath.m in Sources */,
|
|
3181
3164
|
719CD8FD2126C88B00C7D0C2 /* XCUIApplication+FBAlert.m in Sources */,
|
|
3182
3165
|
13DE7A45287C2A8D003243C6 /* FBXCAccessibilityElement.m in Sources */,
|
|
3183
|
-
71241D781FAE31F100B9559F /* FBAppiumActionsSynthesizer.m in Sources */,
|
|
3184
3166
|
641EE70E2240CE4800173FCB /* FBTVNavigationTracker.m in Sources */,
|
|
3185
3167
|
71BD20741F86116100B36EC2 /* XCUIApplication+FBTouchAction.m in Sources */,
|
|
3186
3168
|
EE158AE71CBD456F00A3E3F0 /* FBWebServer.m in Sources */,
|
|
@@ -3298,8 +3280,6 @@
|
|
|
3298
3280
|
63FD950221F9D06100A3E356 /* FBImageProcessorTests.m in Sources */,
|
|
3299
3281
|
719CD8FF2126C90200C7D0C2 /* FBAutoAlertsHandlerTests.m in Sources */,
|
|
3300
3282
|
EE2202131ECC612200A29571 /* FBIntegrationTestCase.m in Sources */,
|
|
3301
|
-
71BD20781F869E0F00B36EC2 /* FBAppiumTouchActionsIntegrationTests.m in Sources */,
|
|
3302
|
-
719A97AC1F88E7370063B4BD /* FBAppiumMultiTouchActionsIntegrationTests.m in Sources */,
|
|
3303
3283
|
715AFAC41FFA2AAF0053896D /* FBScreenTests.m in Sources */,
|
|
3304
3284
|
EE22021E1ECC618900A29571 /* FBTapTest.m in Sources */,
|
|
3305
3285
|
71930C472066434000D3AFEC /* FBPasteboardTests.m in Sources */,
|
|
@@ -15,43 +15,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
15
15
|
|
|
16
16
|
@interface XCUIApplication (FBTouchAction)
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
Perform complex touch action in scope of the current application.
|
|
20
|
-
Touch actions are represented as lists of dictionaries with predefined sets of values and keys.
|
|
21
|
-
Each dictionary must contain 'action' key, which is one of the following:
|
|
22
|
-
- 'tap' to perform a single tap
|
|
23
|
-
- 'longPress' to perform long tap
|
|
24
|
-
- 'press' to perform press
|
|
25
|
-
- 'release' to release the finger
|
|
26
|
-
- 'moveTo' to move the virtual finger
|
|
27
|
-
- 'wait' to modify the duration of the preceeding action
|
|
28
|
-
- 'cancel' to cancel the preceeding action in the chain
|
|
29
|
-
Each dictionary can also contain 'options' key with additional parameters dictionary related to the appropriate action.
|
|
30
|
-
|
|
31
|
-
The following options are mandatory for 'tap', 'longPress', 'press' and 'moveTo' actions:
|
|
32
|
-
- 'x' the X coordinate of the action
|
|
33
|
-
- 'y' the Y coordinate of the action
|
|
34
|
-
- 'element' the corresponding element instance, for which the action is going to be performed
|
|
35
|
-
If only 'element' is set then hit point coordinates of this element will be used.
|
|
36
|
-
If only 'x' and 'y' are set then these will be considered as absolute coordinates.
|
|
37
|
-
If both 'element' and 'x'/'y' are set then these will act as relative element coordinates.
|
|
38
|
-
|
|
39
|
-
It is also mandatory, that 'release' and 'wait' actions are preceeded with at least one chain item, which contains absolute coordinates, like 'tap', 'press' or 'longPress'. Empty chains are not allowed.
|
|
40
|
-
|
|
41
|
-
The following additional options are available for different actions:
|
|
42
|
-
- 'tap': 'count' (defines count of taps to be performed in a row; 1 by default)
|
|
43
|
-
- 'longPress': 'duration' (number of milliseconds to hold/move the virtual finger; 500.0 ms by default)
|
|
44
|
-
- 'wait': 'ms' (number of milliseconds to wait for the preceeding action; 0.0 ms by default)
|
|
45
|
-
|
|
46
|
-
List of lists can be passed there is order to perform multi-finger touch action. Each single actions chain is going to be executed by a separate virtual finger in such case.
|
|
47
|
-
|
|
48
|
-
@param actions Either array of dictionaries, whose format is described above to peform single-finger touch action or array of array to perform multi-finger touch action.
|
|
49
|
-
@param elementCache Cached elements mapping for the currrent application. The method assumes all elements are already represented by their actual instances if nil value is set
|
|
50
|
-
@param error If there is an error, upon return contains an NSError object that describes the problem
|
|
51
|
-
@return YES If the touch action has been successfully performed without errors
|
|
52
|
-
*/
|
|
53
|
-
- (BOOL)fb_performAppiumTouchActions:(NSArray *)actions elementCache:(nullable FBElementCache *)elementCache error:(NSError * _Nullable*)error;
|
|
54
|
-
|
|
55
18
|
/**
|
|
56
19
|
Perform complex touch action in scope of the current application.
|
|
57
20
|
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
#import "XCUIApplication+FBTouchAction.h"
|
|
12
12
|
|
|
13
|
-
#import "FBAppiumActionsSynthesizer.h"
|
|
14
13
|
#import "FBBaseActionsSynthesizer.h"
|
|
15
14
|
#import "FBConfiguration.h"
|
|
16
15
|
#import "FBExceptions.h"
|
|
@@ -54,20 +53,6 @@
|
|
|
54
53
|
return [self fb_synthesizeEvent:eventRecord error:error];
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
- (BOOL)fb_performAppiumTouchActions:(NSArray *)actions
|
|
58
|
-
elementCache:(FBElementCache *)elementCache
|
|
59
|
-
error:(NSError **)error
|
|
60
|
-
{
|
|
61
|
-
if (![self fb_performActionsWithSynthesizerType:FBAppiumActionsSynthesizer.class
|
|
62
|
-
actions:actions
|
|
63
|
-
elementCache:elementCache
|
|
64
|
-
error:error]) {
|
|
65
|
-
return NO;
|
|
66
|
-
}
|
|
67
|
-
[self fb_waitUntilStableWithTimeout:FBConfiguration.animationCoolOffTimeout];
|
|
68
|
-
return YES;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
56
|
- (BOOL)fb_performW3CActions:(NSArray *)actions
|
|
72
57
|
elementCache:(FBElementCache *)elementCache
|
|
73
58
|
error:(NSError **)error
|
|
@@ -22,25 +22,12 @@
|
|
|
22
22
|
{
|
|
23
23
|
return
|
|
24
24
|
@[
|
|
25
|
-
[[FBRoute POST:@"/wda/touch/perform"] respondWithTarget:self action:@selector(handlePerformAppiumTouchActions:)],
|
|
26
|
-
[[FBRoute POST:@"/wda/touch/multi/perform"] respondWithTarget:self action:@selector(handlePerformAppiumTouchActions:)],
|
|
27
25
|
[[FBRoute POST:@"/actions"] respondWithTarget:self action:@selector(handlePerformW3CTouchActions:)],
|
|
28
26
|
];
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
#pragma mark - Commands
|
|
32
30
|
|
|
33
|
-
+ (id<FBResponsePayload>)handlePerformAppiumTouchActions:(FBRouteRequest *)request
|
|
34
|
-
{
|
|
35
|
-
XCUIApplication *application = request.session.activeApplication;
|
|
36
|
-
NSArray *actions = (NSArray *)request.arguments[@"actions"];
|
|
37
|
-
NSError *error;
|
|
38
|
-
if (![application fb_performAppiumTouchActions:actions elementCache:request.session.elementCache error:&error]) {
|
|
39
|
-
return FBResponseWithUnknownError(error);
|
|
40
|
-
}
|
|
41
|
-
return FBResponseWithOK();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
31
|
+ (id<FBResponsePayload>)handlePerformW3CTouchActions:(FBRouteRequest *)request
|
|
45
32
|
{
|
|
46
33
|
XCUIApplication *application = request.session.activeApplication;
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the BSD-style license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#import "FBBaseActionsSynthesizer.h"
|
|
11
|
-
|
|
12
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
-
|
|
14
|
-
#if !TARGET_OS_TV
|
|
15
|
-
@interface FBAppiumActionsSynthesizer : FBBaseActionsSynthesizer
|
|
16
|
-
|
|
17
|
-
@end
|
|
18
|
-
#endif
|
|
19
|
-
|
|
20
|
-
NS_ASSUME_NONNULL_END
|