获取126邮箱动态iframe失败
来源:2-4 HTML页面中如何确认元素的唯一性

慕虎7377948
2020-12-14
代码如下:
driver.get(“http://mail.126.com”);
try {
Thread.sleep(5000);
} catch (InterruptedException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
driver.switchTo().frame(driver.findElement(By.xpath("//*[@id=‘loginDiv’]/iframe")));
看网上好多都说这么获取,但是就是报错.
org.openqa.selenium.WebDriverException: Permission denied to access property "name"
Command duration or timeout: 0 milliseconds
写回答
1回答
-
慕虎7377948
提问者
2020-12-14
有哪个大佬或者老师给解答一下
052020-12-18
相似问题