遍历时报错

遍历时报错_第1张图片

@Test
public void test01(){
    List courseList = driver.findElements(By.cssSelector(".title.ellipsis2"));
    for(WebElement courseName:courseList){
        System.out.println(courseName.getText());
    }
}

你可能感兴趣的:(java,apache,前端)