diff --git a/dotnet/src/support/PageObjects/FindsByAllAttribute.cs b/dotnet/src/support/PageObjects/FindsByAllAttribute.cs index 7cf9d9cb97ecd..1ee0b498b0669 100644 --- a/dotnet/src/support/PageObjects/FindsByAllAttribute.cs +++ b/dotnet/src/support/PageObjects/FindsByAllAttribute.cs @@ -44,7 +44,7 @@ namespace OpenQA.Selenium.Support.PageObjects /// /// /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class)] public sealed class FindsByAllAttribute : Attribute { } diff --git a/dotnet/src/support/PageObjects/FindsByAttribute.cs b/dotnet/src/support/PageObjects/FindsByAttribute.cs index 7fadc86d3b95f..d3cea0ac7531e 100644 --- a/dotnet/src/support/PageObjects/FindsByAttribute.cs +++ b/dotnet/src/support/PageObjects/FindsByAttribute.cs @@ -56,7 +56,7 @@ namespace OpenQA.Selenium.Support.PageObjects /// /// /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true)] + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class, AllowMultiple = true)] public sealed class FindsByAttribute : Attribute, IComparable { private By finder = null; diff --git a/dotnet/src/support/PageObjects/FindsBySequenceAttribute.cs b/dotnet/src/support/PageObjects/FindsBySequenceAttribute.cs index a1d7ca2c78cd3..15d0bd69c4344 100644 --- a/dotnet/src/support/PageObjects/FindsBySequenceAttribute.cs +++ b/dotnet/src/support/PageObjects/FindsBySequenceAttribute.cs @@ -43,7 +43,7 @@ namespace OpenQA.Selenium.Support.PageObjects /// /// /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class)] public sealed class FindsBySequenceAttribute : Attribute { }