【发布时间】:2021-04-02 21:21:31
【问题描述】:
我正在尝试进入 iframe,但出现如下错误:
Find element :By.id: fullscreen-app-host
Find element :By.id: fullscreen-app-host
Get Exception: no such element: Unable to locate element: {"method":"css selector","selector":"#fullscreen\-app\-host"}
这里是 iframe css:
<iframe class="publishedAppIframe" tabindex="0" aria-hidden="false" id="fullscreen-app-host" scrolling="no" frameborder="0" name="fullscreen-app-host" allow="geolocation; microphone; camera; fullscreen" style="" title="holidays" cd_frame_id_="6a1f85c52ae"></iframe>
我尝试了许多不同的方法,但结果总是几乎相同 - 无法在 iframe 中找到元素。
在这里,我将链接粘贴到我使用的方法代码: https://www.codepile.net/pile/7eygVLY3
【问题讨论】:
标签: java selenium testing iframe automation