• <small id='FpLN4'></small><noframes id='FpLN4'>

    1. <legend id='FpLN4'><style id='FpLN4'><dir id='FpLN4'><q id='FpLN4'></q></dir></style></legend>

    2. <tfoot id='FpLN4'></tfoot>
      • <bdo id='FpLN4'></bdo><ul id='FpLN4'></ul>

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

        Selenium 测试工作时如何工作

        时间:2023-09-17

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

            <tbody id='Otney'></tbody>
              <bdo id='Otney'></bdo><ul id='Otney'></ul>

              <small id='Otney'></small><noframes id='Otney'>

              <legend id='Otney'><style id='Otney'><dir id='Otney'><q id='Otney'></q></dir></style></legend>

                • <tfoot id='Otney'></tfoot>
                  本文介绍了Selenium 测试工作时如何工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  当我编写自动化测试并运行它们(在我的 PC 上)时,我无法工作,直到测试完成,因为例如,如果我正在编码,焦点将跳出 Visual Studio,转到查看的被测 Web 应用程序在网络浏览器中.

                  When I write automated tests and run them (on my PC) I can not work until the tests are finished, because for example if I am coding the focus will jump out of visual studio to go to the web application under test viewed in web browser.

                  有没有办法防止 Selenium 驱动程序窃取焦点?

                  Is there a way to prevent Selenium driver from stealing focus?

                  推荐答案

                  你不仅不能阻止 WebdDiver 获取焦点,你也不应该这样做.WebdDiver 需要将焦点放在浏览器上才能成功与之交互.如果你把焦点放在 WebdDiver 将无法执行像 FindElement()Click() 或任何其他操作和测试将失败.

                  Not only you can't prevent the WebdDiver from taking the focus, you shouldn't do it. The WebdDiver needs the focus on the browser in order to successfully interact with it. If you take the focus the WebdDiver won't be able to perform actions like FindElement(), Click() or any other operation and the tests will fail.

                  这篇关于Selenium 测试工作时如何工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何导入数据文件进行 UFT API 测试? 下一篇:调用 FindElements 后 Selenium 停止工作

                  相关文章

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

                  <legend id='8BzK2'><style id='8BzK2'><dir id='8BzK2'><q id='8BzK2'></q></dir></style></legend>
                  1. <small id='8BzK2'></small><noframes id='8BzK2'>

                      <bdo id='8BzK2'></bdo><ul id='8BzK2'></ul>
                    <tfoot id='8BzK2'></tfoot>