以下处理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”)来执行关于本SPAN一些动作在那个IFRAME中。我曾尝试与大多数的情况,但没有任何结果:(......任何一个请帮助
我只使用水豚红宝石想要黄瓜解..
注:我试着用下面的代码,但没有。结果
page.driver.browser.switch_to.frame “I0_1366100881331”
可能重复:http://stackoverflow.com/questions/11909149/how-can-i-switch-between-two-frames-with-capybara –