22
22
import java .util .List ;
23
23
import java .util .Map ;
24
24
25
+ /**
26
+ * Touch actions are deprecated.
27
+ * Please use W3C Actions instead or the corresponding
28
+ * extension methods for the driver (if available).
29
+ * Check
30
+ * - https://www.youtube.com/watch?v=oAJ7jwMNFVU
31
+ * - https://appiumpro.com/editions/30-ios-specific-touch-action-methods
32
+ * - https://appiumpro.com/editions/29-automating-complex-gestures-with-the-w3c-actions-api
33
+ * for more details.
34
+ */
35
+ @ Deprecated
36
+ @ SuppressWarnings ({"unchecked" , "rawtypes" })
25
37
public interface PerformsTouchActions extends ExecutesMethod {
26
38
/**
27
39
* Performs a chain of touch actions, which together can be considered an
@@ -36,6 +48,7 @@ public interface PerformsTouchActions extends ExecutesMethod {
36
48
* touch actions to perform
37
49
* @return the same touch action object
38
50
*/
51
+ @ Deprecated
39
52
default TouchAction performTouchAction (TouchAction touchAction ) {
40
53
Map <String , List <Object >> parameters = touchAction .getParameters ();
41
54
execute (PERFORM_TOUCH_ACTION , parameters );
@@ -53,9 +66,10 @@ default TouchAction performTouchAction(TouchAction touchAction) {
53
66
*
54
67
* @param multiAction the MultiTouchAction object to perform.
55
68
*/
56
- default void performMultiTouchAction (MultiTouchAction multiAction ) {
69
+ @ Deprecated
70
+ default MultiTouchAction performMultiTouchAction (MultiTouchAction multiAction ) {
57
71
Map <String , List <Object >> parameters = multiAction .getParameters ();
58
72
execute (PERFORM_MULTI_TOUCH , parameters );
59
- multiAction .clearActions ();
73
+ return multiAction .clearActions ();
60
74
}
61
75
}
0 commit comments