任何人都可以帮助解决以下问题:
情景:
我必须拖动图片并放入iframe文本区域。
下面是示例代码
Actions act = new Actions(driver);
WebElement srcElement = driver.findElement(By.id(locator));
Thread.sleep(3000);
WebElement targetElement =driver.findElement(By
.id(locator));
Thread.sleep(3000);
act.dragAndDrop(srcElement, targetElement);
Thread.sleep(3000);
act.build().perform();
Thread.sleep(3000); in the above code how can i write Driver.SwitchToFrame("WVTemplateFrame");