I am using the following code for POM :
@FindBy(xpath="[@value='Send query']") private WebElement queryButton;
I am getting this error
org.openqa.selenium.InvalidSelectorException: invalid selector: Unable to locate an element with the xpath expression [@value='Send query'] because of the following error: SyntaxError: Failed to execute 'evaluate' on 'Document': The string '[@value='Send query']' is not a valid XPath expression.