selenium find adjacent element code example
Example: selenium find adjacent element
WebElement errorElement = dateElement.findElement(By.xpath("following-sibling::span[@class='error']"));
WebElement errorElement = dateElement.findElement(By.xpath("following-sibling::span[@class='error']"));