Utilizing the PageFactory, these WebElements are generally instated when a Page Object is made and can be used to find web components that utilize various methodologies like ID, XPath and CSSelector.
1. Start by indicating both 'How' and 'Utilizing' under FindBy comment.
WebElement username;
2. By directly utilizing a finder like id, XPath, ClassName, partialLinkText, tagName or name.
WebElement username;
The above comments are broadly utilized in test structures made via computerization testing organizations. If you want professional assistance in using Selenium webdriver, contact QASource today.