擅长:python、mysql、java
<p>在要测试的URL中,位于<strong>iframe</strong>中的cookie。要在这个iframe中单击某个东西,首先必须找到iframe。然后你必须切换到iframe。之后,您可以返回到默认页面。在</p>
<pre><code>frame_reference = driver.find_element_by_class_name("gwt-Frame")
driver.switch_to.frame(frame_reference)
</code></pre>
<p>然后找到你的元素(同意并继续),然后点击它。在</p>
<p>然后:</p>
^{pr2}$