Skip to content

Commit eb324b7

Browse files
Dor-blKazuCocoa
andauthored
BREAKING CHANGE: Remove obsolete TouchActions, MultiActions methods (#832)
Co-authored-by: Kazuaki Matsuo <[email protected]>
1 parent 9bf7155 commit eb324b7

File tree

7 files changed

+1
-549
lines changed

7 files changed

+1
-549
lines changed

src/Appium.Net/Appium/AppiumCommand.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,6 @@ public class AppiumCommand
154154

155155
#endregion Driver Commands
156156

157-
#region (Deprecated) Touch Commands
158-
// TODO: Remove this region once we deprecate the touch actions
159-
// Please use the W3C Actions instead.
160-
new AppiumCommand(HttpCommandInfo.PostCommand, AppiumDriverCommand.PerformMultiAction,
161-
"/session/{sessionId}/touch/multi/perform"),
162-
new AppiumCommand(HttpCommandInfo.PostCommand, AppiumDriverCommand.PerformTouchAction,
163-
"/session/{sessionId}/touch/perform"),
164-
165-
#endregion (Deprecated) Touch Commands
166157

167158
// Enable W3C Actions on AppiumWebDriver
168159

src/Appium.Net/Appium/AppiumDriver.cs

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public abstract class AppiumDriver : WebDriver,
3131
IHasSessionDetails,
3232
IHasLocation,
3333
IHidesKeyboard, IInteractsWithFiles, IFindsByFluentSelector<AppiumElement>,
34-
IInteractsWithApps, IPerformsTouchActions, IRotatable, IContextAware
34+
IInteractsWithApps, IRotatable, IContextAware
3535
{
3636
private const string NativeApp = "NATIVE_APP";
3737

@@ -386,26 +386,6 @@ public void DeactiveIMEEngine() =>
386386

387387
#endregion Input Method (IME)
388388

389-
#region (Deprecated) Multi Actions
390-
// TODO: Remove this region once we deprecate the touch actions
391-
// Please use the W3C Actions instead.
392-
[Obsolete("Touch Actions are deprecated in W3C spec, please use W3C actions instead")]
393-
public void PerformMultiAction(IMultiAction multiAction)
394-
{
395-
if (multiAction == null) return;
396-
var parameters = multiAction.GetParameters();
397-
Execute(AppiumDriverCommand.PerformMultiAction, parameters);
398-
}
399-
[Obsolete("Touch Actions are deprecated in W3C spec, please use W3C actions instead")]
400-
public void PerformTouchAction(ITouchAction touchAction)
401-
{
402-
if (touchAction == null) return;
403-
var parameters = AppiumCommandExecutionHelper.PrepareArgument("actions", touchAction.GetParameters());
404-
Execute(AppiumDriverCommand.PerformTouchAction, parameters);
405-
}
406-
407-
#endregion (Deprecated) Multi Actions
408-
409389
#region W3C Actions
410390

411391
// Replace or hide the original RemoteWebElement.PerformActions base method so that it does not require

src/Appium.Net/Appium/AppiumDriverCommand.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -213,22 +213,6 @@ public class AppiumDriverCommand
213213

214214
#endregion Appium Specific extensions to JSONWP Commands
215215

216-
#region (Deprecated) TouchActions
217-
// TODO: Remove this region once we deprecate the touch actions
218-
// Please use the W3C Actions instead.
219-
220-
/// <summary>
221-
/// Perform touch action
222-
/// </summary>
223-
public const string PerformTouchAction = "performTouchAction";
224-
225-
/// <summary>
226-
/// Perform multi touch action
227-
/// </summary>
228-
public const string PerformMultiAction = "performMultiTouch";
229-
230-
#endregion (Deprecated) MultiTouchActions
231-
232216
#region W3C Actions
233217

234218
/// <summary>

src/Appium.Net/Appium/Interfaces/IPerformsTouchActions.cs

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/Appium.Net/Appium/MultiAction/MultiAction.cs

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)