文章目录 切换至 frame 中 切换至父 frame 跳出 frame 切换至 frame 中 已知有 iframe 其 id 是 frame1,我们想切换其中来操纵其中的元素 frame() 目前接受的参数有第几个 frame,frame 的名字或 id,frame 定位的元素 public final By frameBy = By.id("frame1"); WebElement frameElement =