试试这个:
(Java)
List<WebElement> childs = rootWebElement.findElements(By.xpath(".//*"));(C#)
IReadOnlyList<IWebElement> childs = rootWebElement.FindElements(By.XPath(".//*"));
试试这个:
(Java)
List<WebElement> childs = rootWebElement.findElements(By.xpath(".//*"));(C#)
IReadOnlyList<IWebElement> childs = rootWebElement.FindElements(By.XPath(".//*"));