From 05b80630f7137fb7f66168225534a2e0d714cb5e Mon Sep 17 00:00:00 2001 From: Michael Render Date: Wed, 4 Dec 2024 00:15:46 -0500 Subject: [PATCH] [dotnet] Address warnings with `ActionSequence.inputDevice` --- 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 6b60496e37fc1..2ad1576a084d5 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 4fc3307982a83..e3672dd5a5c7a 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; } }