From aafb326f2c4039113911e8b2835d7fb17d30e309 Mon Sep 17 00:00:00 2001 From: Jim Evans Date: Wed, 7 Mar 2018 12:37:37 -0800 Subject: [PATCH] Marking .NET PageFactory obsolete This implementation of PageFactory for .NET is deeply flawed. Additionally, using the PageFactory provides no benefit over other methods of Page Object creation in .NET. This is true for code verbosity as well, which is often the reason cited for wanting to use the PageFactory in .NET. The existing code has been migrated to a new repository under a new organization on GitHub (https://github.com/DotNetSeleniumTools/DotNetSeleniumExtras). It is hoped that this will encourage a volunteer from the community to take ownership of this code. Users should update their references and migrate their code to use `SeleniumExtras.PageFactory`. The implementation will be removed from the .NET language bindings in a future release. --- dotnet/src/support/PageObjects/PageFactory.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/dotnet/src/support/PageObjects/PageFactory.cs b/dotnet/src/support/PageObjects/PageFactory.cs index e15a2eb09a37e..d167cf801e530 100644 --- a/dotnet/src/support/PageObjects/PageFactory.cs +++ b/dotnet/src/support/PageObjects/PageFactory.cs @@ -26,6 +26,7 @@ namespace OpenQA.Selenium.Support.PageObjects /// /// Provides the ability to produce Page Objects modeling a page. This class cannot be inherited. /// + [Obsolete("The PageFactory implementation in the .NET bindings is deprecated and will be removed in a future release. This portion of the code has been migrated to the DotNetSeleniumExtras repository on GitHub (https://github.com/DotNetSeleniumTools/DotNetSeleniumExtras)")] public sealed class PageFactory { ///