News

InnerHTML isn't a very good approach to any problem. You might want to rewrite that stuff using the DOM. You might find that things tend to work better ...
text a text p WebElement elementWithClass = driver.findElement(By.className("stuff")); WebElement parent = elementWithClass .findElement(By.xpath("..")); System.out.