Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/Appium.Net/Appium/AppiumCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions src/Appium.Net/Appium/Interfaces/IPerformsTouchActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
/// <summary>
/// Provides a mechanism for building advanced interactions with the browser/application.
/// </summary>
[Obsolete("Touch Actions are deprecated in W3C spec, please use W3C actions instead")]
public interface IPerformsTouchActions
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/Appium.Net/Appium/MultiAction/MultiAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ITouchAction> actions = new List<ITouchAction>();
Expand Down
2 changes: 2 additions & 0 deletions src/Appium.Net/Appium/MultiAction/TouchAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion test/integration/Android/TouchActionTest.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
{
Expand Down
3 changes: 3 additions & 0 deletions test/integration/IOS/TouchActionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down