所选值得到反映。
WebElement classname = driver.findElement(By.cssSelector("editorid")); //Get Iframe
String val = "ValuetoputinEditor";
final Boolean valueavailableiniframe = getValueIframe(classname, val); // Function to Get value saved in Iframe
//If value getting form Ifram then click on Modal
if(
valueavailableiniframe.equals(true)
){
// Click on Modal
WebElement classname1 = driver.findElement(By.xpath("modalbuttonid"));
classname1.click();
//Switch to active element here in our case its model dialogue box.
driver.switchTo().activeElement();
WebElement body = driver.findElement(By.id("myModalLabel")); //Get Iframe body
}