I am using a POM in C# with Xunit as a framework, and am getting error in pagefactory for the following code:
Error: "The name PageFactory does not exist in current context", what is the solution for this?
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
PageFactory class is now considered deprecated in the Selenium binaries; that could be the issue. But, I would still try adding the following to your code to see if it will resolve.
Failing that, you could use
NuGet to install this package in your project.