• <small id='1qKX0'></small><noframes id='1qKX0'>

        • <bdo id='1qKX0'></bdo><ul id='1qKX0'></ul>
      1. <tfoot id='1qKX0'></tfoot>
        <legend id='1qKX0'><style id='1qKX0'><dir id='1qKX0'><q id='1qKX0'></q></dir></style></legend>

        <i id='1qKX0'><tr id='1qKX0'><dt id='1qKX0'><q id='1qKX0'><span id='1qKX0'><b id='1qKX0'><form id='1qKX0'><ins id='1qKX0'></ins><ul id='1qKX0'></ul><sub id='1qKX0'></sub></form><legend id='1qKX0'></legend><bdo id='1qKX0'><pre id='1qKX0'><center id='1qKX0'></center></pre></bdo></b><th id='1qKX0'></th></span></q></dt></tr></i><div id='1qKX0'><tfoot id='1qKX0'></tfoot><dl id='1qKX0'><fieldset id='1qKX0'></fieldset></dl></div>

        通过 Selenium 和 python 切换到 iframe

        时间:2023-07-04
          <legend id='qFNow'><style id='qFNow'><dir id='qFNow'><q id='qFNow'></q></dir></style></legend>

              1. <small id='qFNow'></small><noframes id='qFNow'>

                <tfoot id='qFNow'></tfoot>
                • <bdo id='qFNow'></bdo><ul id='qFNow'></ul>
                  <i id='qFNow'><tr id='qFNow'><dt id='qFNow'><q id='qFNow'><span id='qFNow'><b id='qFNow'><form id='qFNow'><ins id='qFNow'></ins><ul id='qFNow'></ul><sub id='qFNow'></sub></form><legend id='qFNow'></legend><bdo id='qFNow'><pre id='qFNow'><center id='qFNow'></center></pre></bdo></b><th id='qFNow'></th></span></q></dt></tr></i><div id='qFNow'><tfoot id='qFNow'></tfoot><dl id='qFNow'><fieldset id='qFNow'></fieldset></dl></div>

                    <tbody id='qFNow'></tbody>
                  本文介绍了通过 Selenium 和 python 切换到 iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我如何只知道在 selenium 中切换到这个 iframe

                  How would I switch to this iframe in selenium knowing only

                  <iframe name="Dialogue Window">
                  

                  推荐答案

                  您可以使用 XPath 来定位 <iframe>:

                  You can use an XPath to locate the <iframe>:

                  iframe = driver.find_element_by_xpath("//iframe[@name='Dialogue Window']")
                  

                  然后switch_to