处理iframe与水豚红宝石

前端之家收集整理的这篇文章主要介绍了处理iframe与水豚红宝石前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
以下是HTML代码..
<iframe id="I0_1366100881331" frameborder="0" width="100%">
<div class="ZRa">
<span id="button" class="hAa Qo Bg" tabindex="0" role="button" title="" aria-      label="Click here to publicly +1 this." aria-pressed="false">
</div>
</iframe>

在上述情况下,我想切换到IFRAME(iframe id =“I0_1366100881331”),以对该IFRAME中存在的SPAN执行一些操作.我尝试了大多数情况,但没有结果:(…任何一个请帮助.

我想要黄瓜的解决方案只使用水珠红宝石

注意:我尝试了以下代码,但没有结果.

page.driver.browser.switch_to.frame“I0_1366100881331”

解决方法

within_frame(find('<css rule>')) do
  <code for dealing with iframe entries>
end
原文链接:https://www.f2er.com/html/230504.html

猜你在找的HTML相关文章