<tfoot id='UepYR'></tfoot>

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

      • <bdo id='UepYR'></bdo><ul id='UepYR'></ul>

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

        如何在量角器上按 Ctrl+单击?

        时间:2023-10-12

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

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

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

                1. <tfoot id='vEbaJ'></tfoot>
                2. <i id='vEbaJ'><tr id='vEbaJ'><dt id='vEbaJ'><q id='vEbaJ'><span id='vEbaJ'><b id='vEbaJ'><form id='vEbaJ'><ins id='vEbaJ'></ins><ul id='vEbaJ'></ul><sub id='vEbaJ'></sub></form><legend id='vEbaJ'></legend><bdo id='vEbaJ'><pre id='vEbaJ'><center id='vEbaJ'></center></pre></bdo></b><th id='vEbaJ'></th></span></q></dt></tr></i><div id='vEbaJ'><tfoot id='vEbaJ'></tfoot><dl id='vEbaJ'><fieldset id='vEbaJ'></fieldset></dl></div>
                  本文介绍了如何在量角器上按 Ctrl+单击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我尝试了以下奇怪的组合,但它们都不起作用:

                  I have tried weird combination as the following, but none of them are working:

                  var ptor = protractor.getInstance();
                  ptor.actions().mouseMove(node).keyDown(ptor.Key.CTRL).sendKeys(ptor.Key.CLICK).perform();
                  

                  推荐答案

                  你需要链接 mouseMove(), keyDown()click():

                  You need to chain mouseMove(), keyDown() and click():

                  var elm = element(by.id('my_id'));
                  
                  browser.actions()
                      .mouseMove(elm)
                      .keyDown(protractor.Key.CONTROL)  // COMMAND for Mac 
                      .click()
                      .perform();
                  

                  通过单击链接在 Chrome 上对其进行了测试 - 在新选项卡中打开一个链接.

                  Tested it on Chrome by clicking on a link - opens up a link in a new tab.

                  请注意,从 protractor 1.5 开始,应该使用全局 browser 对象代替 protractor.getInstance(),请参阅 重大更改.

                  Note that, starting with protractor 1.5, there is a global browser object that should be used instead of protractor.getInstance(), see Breaking Changes.

                  这篇关于如何在量角器上按 Ctrl+单击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

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

                          <tfoot id='zsoD8'></tfoot>
                        • <small id='zsoD8'></small><noframes id='zsoD8'>