获取文本内容和滚动页面

tech2025-11-04  8

获取文本内容

a. String contactValue = contactElement.getAttribute(“value”);

b. String string=fromElement.getText();

滚动页面

((JavascriptExecutor) getDriver()).executeScript(“window.scrollTo(1800,0)”);

最新回复(0)