title: Getting next sibling element using XPath and Selenium for Java
body: <p>I know that you can get a parent element when using Selenium for Java and XPath like this:</p>
  
  <pre><code>WebElement parent = child.findElement(By.xpath(".."));
  </code></pre>
  
  <p>But how do I get the next sibling of an element, what do I need to put between the parentheses instead of two dots as in the case above?</p>