diff --git a/src/Appium.Net/Appium/AppiumCommand.cs b/src/Appium.Net/Appium/AppiumCommand.cs
index b9f1212a5..5efee7800 100644
--- a/src/Appium.Net/Appium/AppiumCommand.cs
+++ b/src/Appium.Net/Appium/AppiumCommand.cs
@@ -145,14 +145,17 @@ public class AppiumCommand
#endregion Driver Commands
- #region Touch Commands
-
+
+
+ #region (Deprecated) Touch Commands
+ // TODO: Remove this region once we deprecate the touch actions
+ // Please use the W3C Actions instead.
new AppiumCommand(HttpCommandInfo.PostCommand, AppiumDriverCommand.PerformMultiAction,
"/session/{sessionId}/touch/multi/perform"),
new AppiumCommand(HttpCommandInfo.PostCommand, AppiumDriverCommand.PerformTouchAction,
"/session/{sessionId}/touch/perform"),
- #endregion Touch Commands
+ #endregion (Deprecated) Touch Commands
// Enable W3C Actions on AppiumWebDriver
diff --git a/src/Appium.Net/Appium/Interfaces/IPerformsTouchActions.cs b/src/Appium.Net/Appium/Interfaces/IPerformsTouchActions.cs
index bf7f9aca3..a44818055 100644
--- a/src/Appium.Net/Appium/Interfaces/IPerformsTouchActions.cs
+++ b/src/Appium.Net/Appium/Interfaces/IPerformsTouchActions.cs
@@ -13,11 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+using System;
+
namespace OpenQA.Selenium.Appium.Interfaces
{
///
/// Provides a mechanism for building advanced interactions with the browser/application.
///
+ [Obsolete("Touch Actions are deprecated in W3C spec, please use W3C actions instead")]
public interface IPerformsTouchActions
{
///
diff --git a/src/Appium.Net/Appium/MultiAction/MultiAction.cs b/src/Appium.Net/Appium/MultiAction/MultiAction.cs
index 94a916d48..cfaa847b8 100644
--- a/src/Appium.Net/Appium/MultiAction/MultiAction.cs
+++ b/src/Appium.Net/Appium/MultiAction/MultiAction.cs
@@ -18,6 +18,7 @@
namespace OpenQA.Selenium.Appium.MultiTouch
{
+ [Obsolete("MultiAction is deprecated, please use W3C actions instead: http://appium.io/docs/en/commands/interactions/actions/")]
public class MultiAction : IMultiAction
{
private IList actions = new List();
diff --git a/src/Appium.Net/Appium/MultiAction/TouchAction.cs b/src/Appium.Net/Appium/MultiAction/TouchAction.cs
index 31e74f315..334b15d57 100644
--- a/src/Appium.Net/Appium/MultiAction/TouchAction.cs
+++ b/src/Appium.Net/Appium/MultiAction/TouchAction.cs
@@ -13,11 +13,13 @@
//limitations under the License.
using OpenQA.Selenium.Appium.Interfaces;
+using System;
using System.Collections.Generic;
using System.Reflection;
namespace OpenQA.Selenium.Appium.MultiTouch
{
+ [Obsolete("TouchAction is deprecated, please use W3C actions instead: http://appium.io/docs/en/commands/interactions/actions/")]
public class TouchAction : ITouchAction
{
internal class Step
diff --git a/test/integration/Android/TouchActionTest.cs b/test/integration/Android/TouchActionTest.cs
index 3fc0e148f..a81794262 100644
--- a/test/integration/Android/TouchActionTest.cs
+++ b/test/integration/Android/TouchActionTest.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using System.Threading;
using Appium.Net.Integration.Tests.helpers;
using NUnit.Framework;
@@ -8,6 +9,8 @@
namespace Appium.Net.Integration.Tests.Android
{
+ [Obsolete("Touch Actions are deprecated")]
+ //TODO: remove this test once we deprecate touch actions
[TestFixture]
public class TouchActionTest
{
diff --git a/test/integration/IOS/TouchActionTest.cs b/test/integration/IOS/TouchActionTest.cs
index f9390b4b7..189774565 100644
--- a/test/integration/IOS/TouchActionTest.cs
+++ b/test/integration/IOS/TouchActionTest.cs
@@ -5,10 +5,13 @@
using OpenQA.Selenium.Appium.iOS;
using OpenQA.Selenium.Appium.Interfaces;
using OpenQA.Selenium.Appium.MultiTouch;
+using System;
namespace Appium.Net.Integration.Tests.IOS
{
[TestFixture]
+ [Obsolete("Touch Actions are deprecated")]
+ //TODO: remove this test once we deprecate touch actions
public class TouchActionTest
{
private AppiumDriver _driver;