/**
* 窗口
* */
public void windowsHandle(){
Set<String> handles = driver.getWindowHandles();
for(String s:handles){
if(s.equals(windowsHandle)){
continue;
}
System.out.println(s);
driver.switchTo().window(s);
}
driver.findElement(By.linkText("案例")).click();
}
网友评论