getText() which will retrieve the innerText of a selector. https ... xpath("//h2")) for(WebElement element : elements) { print("Heading text ...
確定! 回上一頁