@FindBy(linkText= "[Enter Country]") WebElement enterCountryMenu1;
@FindBy(xpath="//a[text()='Enter Country']") WebElement enterCountryMenu2;
This is just for my knowledge, why does the script work if I click the link by xpath element but not with linkText element? Does linkText require anything else? I make sure I comment out the first element before testing the second one.
Thanks in advance