From a list of similar elements I was able to get the element I wanted.
List<WebElement> expandQA = driver.findElements(By.xpath("//img[contains(@class, 'x-tree-expander')]/following-sibling::span[text()='QA']"))
expandQA.get(2);
Now I want to double click on that element. How could I do that?
Tried using the below code but I'm getting a error.
Actions actions = new Actions(driver);
List<WebElement> expandQA = driver.findElements(By.xpath("//img[contains(@class, 'x-tree-expander')]/following-sibling::span[text()='QA']"));
e = expandQA.get(2);
actions.doubleClick(e);