Using Selenium WebDriver,
when annotating your Locators with @FindBy you can choose between a combination of How + using:
@FindBy(how = How.ID, using = "foobar") WebElement foobar;
or you can directly use the location strategy like so:
@FindBy(id = "foobar") WebElement foobar;
I always use the way shorter second version.
I cannot think of any reason why I should use the longer How+using version.
So my question is:
Are there situations where you need to use [How + using]?
If not, why does this longer version even exist?