- 获取文本内容
a. String contactValue = contactElement.getAttribute(“value”);
b. String string=fromElement.getText();
- 滚动页面
((JavascriptExecutor) getDriver()).executeScript(“window.scrollTo(1800,0)”);
a. String contactValue = contactElement.getAttribute(“value”);
b. String string=fromElement.getText();
((JavascriptExecutor) getDriver()).executeScript(“window.scrollTo(1800,0)”);