@FindBy(how=How.CSS, using="#select-lov > a:nth-child(1)")
WebElement CategoryDropDownlink;
@FindBy(how=How.CSS, using="div[id*='listbox-label']")
WebElement ListBoxPath;
By path="By.cssSelector("+CategoryDropDownListCount+">li:nth-child("+i+")>"+ListBoxPath;
driver.findElement(path).getAttribute("aria");
Можем ли мы объединить эти два локатора в переменную пути?