テストあるあるなのが子画面のオペレーション。ボタンからjavascriptで起動する子画面でデータをあれして、親画面も更新してあれして、みたいな。 webdriverではメソッドswichTo()とgetWindowHandle()、またはgetWindowHandlesを使って制御します。String currentWindow = driver.getWindowHandle(); for (String popUpHandle : Driver.getWindowHandles()) { if(popUpHandle.equalsIgnoreCase(currentWindow)) continue; Driver.switchTo().window(popUpHandle); String sTitle = Driver.getTitle();あらかじめデフォルトの