From f1f47680502a43771d713c81cbb4f0244105ab1e Mon Sep 17 00:00:00 2001 From: Michael Render Date: Fri, 6 Dec 2024 12:35:48 -0500 Subject: [PATCH] [dotnet] Address warnings with `ActionSequence.inputDevice` and use proper alternative (#14848) --- dotnet/src/webdriver/Interactions/ActionSequence.cs | 1 + dotnet/src/webdriver/Interactions/Actions.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dotnet/src/webdriver/Interactions/ActionSequence.cs b/dotnet/src/webdriver/Interactions/ActionSequence.cs index 6b60496e37fc19..2ad1576a084d58 100644 --- a/dotnet/src/webdriver/Interactions/ActionSequence.cs +++ b/dotnet/src/webdriver/Interactions/ActionSequence.cs @@ -72,6 +72,7 @@ public int Count /// Gets the input device for this Action sequence. /// [Obsolete("This property has been renamed to InputDevice and will be removed in a future version")] + [CLSCompliant(false)] public InputDevice inputDevice => InputDevice; /// diff --git a/dotnet/src/webdriver/Interactions/Actions.cs b/dotnet/src/webdriver/Interactions/Actions.cs index 4fc3307982a83f..e3672dd5a5c7a2 100644 --- a/dotnet/src/webdriver/Interactions/Actions.cs +++ b/dotnet/src/webdriver/Interactions/Actions.cs @@ -138,7 +138,7 @@ private InputDevice FindDeviceById(string name) if (id == name) { - return sequence.inputDevice; + return sequence.InputDevice; } }