Yes, there is a direct translation.
Are you looking for FindsBy :
[FindsBy(How = How.LinkText, Using = "More details")] private IWebElement moreDetailsButton;
As for PageFactory.initElements , yes, it is very similar to .NET, usually called in the Object Object constructor:
public class LoginPage { private IWebDriver _driver; public LoginPage(IWebDriver driver) { _driver = driver; PageFactory.InitElements(_driver); } }
Please note that the Selenium project is fully open. You can easily see the source code "Helper classes of page objects here .
Arran source share