code: public static By getByForParentElement(By by) {
          if (by instanceof ByXPath) {
              String xpath = by.toString().replace("By.xpath: ", "").replaceFirst("^.?//", ".//");
              return By.xpath(xpath);
          }
          return by;
      }
docs: /*
  Allows users to be able to do a complete node search within its parent without
  having to always remember to add .// before the xpath
  Example:
  parent.createBaseElement("//div[@id='testId']");
  parent.createBaseElement(".//div[@id='testId']");
  
  Both examples will now search within the parent.