I am working with Java Selenium. And I need to put String line computeEngine.getMachineSeries()
from properties inside of my xpath. How can I do this?
@FindBys({@FindBy(xpath = "//md-option//div[@class='md-text ng-binding'][contains(text(), '"+computeEngine.getMachineSeries()+"')]")})
List<WebElement> seriesOptionNOne;
I cant use this code above, because of this error: "Attribute value must be constant". How can I do this in another way?