I am using selenium to test my web application and I can successfully find tags using By.xpath. However now and then I need to find child nodes within that node
By.xpath
If you have to wait there is a method presenceOfNestedElementLocatedBy that takes the "parent" element and a locator, e.g. a By.xpath:
presenceOfNestedElementLocatedBy
WebElement subNode = new WebDriverWait(driver,10).until( ExpectedConditions.presenceOfNestedElementLocatedBy( divA, By.xpath(".//div/span") ) );