1 篇文章
selenium switchTo() 切换窗口 - 软件技术
public void swithWindowTest() {
driver.findElement(By.className("open")).click();
String winHandleBefore = driver.getWindowHandle(); // 获取当前窗口的句柄...
driver.findElement(By.className("open")).click();
String winHandleBefore = driver.getWindowHandle(); // 获取当前窗口的句柄...
0
106