说明:attribute指web页面的定位方式,如id、xpath、name、class等;value指web页面的定位方式需要的参数 public void getTextOrValue(String attribute,string value) throws Exception{ driver=Hook.getDriver(); WebElement ele =driver.findElement(toFindBy(attribute,value)); if (ele != null){ System.out.println("Text():"+ ele.getTex...