久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <bdo id='KSTLy'></bdo><ul id='KSTLy'></ul>

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

      2. <tfoot id='KSTLy'></tfoot>
      3. <small id='KSTLy'></small><noframes id='KSTLy'>

      4. <legend id='KSTLy'><style id='KSTLy'><dir id='KSTLy'><q id='KSTLy'></q></dir></style></legend>

        帶有量角器js的剪貼板中的文本

        Text in clipboard with protractor js(帶有量角器js的剪貼板中的文本)
        • <i id='5RfOG'><tr id='5RfOG'><dt id='5RfOG'><q id='5RfOG'><span id='5RfOG'><b id='5RfOG'><form id='5RfOG'><ins id='5RfOG'></ins><ul id='5RfOG'></ul><sub id='5RfOG'></sub></form><legend id='5RfOG'></legend><bdo id='5RfOG'><pre id='5RfOG'><center id='5RfOG'></center></pre></bdo></b><th id='5RfOG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5RfOG'><tfoot id='5RfOG'></tfoot><dl id='5RfOG'><fieldset id='5RfOG'></fieldset></dl></div>

              <bdo id='5RfOG'></bdo><ul id='5RfOG'></ul>

              <tfoot id='5RfOG'></tfoot>

                <tbody id='5RfOG'></tbody>

              <small id='5RfOG'></small><noframes id='5RfOG'>

              <legend id='5RfOG'><style id='5RfOG'><dir id='5RfOG'><q id='5RfOG'></q></dir></style></legend>
                  本文介紹了帶有量角器js的剪貼板中的文本的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  如何使用量角器復制特定文本?

                  How can I copy a specific text with protractor ?

                  我想使用此命令加載要粘貼的文本:

                  I would like to load a text to paste after with this command :

                  return browser.actions().sendKeys(Keys.CONTROL, 'v').perform();
                  

                  示例:

                  加載我的文本test",然后使用此命令粘貼test"

                  Load my text "test" and after with this command, paste "test"

                  我想在我的剪貼板中放一個文本

                  I would like put a text in my clipboard

                  推薦答案

                  我可以直接在我的 ng-model 中輸入一個值,而不是使用 sendKeys 嗎?

                  can I put a value directly in my ng-model, not use sendKeys ?

                  是的,您可以通過 model 值="nofollow noreferrer">.evaluate():

                  Yes, you can directly set the model value via .evaluate():

                  var elm = element(by.model("mymodel.field"));
                  elm.evaluate("mymodel.field = 'test';");
                  


                  將文本放入剪貼板

                  這個想法是使用現有的或動態創建一個 input 元素,您可以將文本發送到該元素,選擇輸入中的所有文本并使用 CTRL/COMMAND + 復制它C 快捷方式.


                  Putting a text into clipboard

                  The idea is to use an existing or dynamically create an input element where you would send the text to, select all the text in the input and copy it with a CTRL/COMMAND + C shortcut.

                  示例:

                  var textToBeCopied = "my text";
                  
                  // creating a new input element
                  browser.executeScript(function () {
                      var el = document.createElement('input');
                      el.setAttribute('id', 'customInput'); 
                  
                      document.getElementsByTagName('body')[0].appendChild(el);
                  });
                  
                  // set the input value to a desired text
                  var newInput = $("#customInput");
                  newInput.sendKeys(textToBeCopied);
                  
                  // select all and copy
                  newInput.sendKeys(protractor.Key.chord(browser.controlKey, "a"));
                  newInput.sendKeys(protractor.Key.chord(browser.controlKey, "c"));
                  

                  其中 browser.controlKey 是處理 CTRL/COMMAND 鍵的跨平臺方式:

                  where browser.controlKey is a cross-platform way to handle CTRL/COMMAND keys:

                  • 使用跨平臺鍵盤快捷鍵結束-端到端測試

                  這篇關于帶有量角器js的剪貼板中的文本的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)

                  <tfoot id='NVKIg'></tfoot>

                          <bdo id='NVKIg'></bdo><ul id='NVKIg'></ul>

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

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

                            主站蜘蛛池模板: 一区二区免费 | 国产精品久久国产精品久久 | 欧美亚洲国产一区二区三区 | 成在线人视频免费视频 | 亚洲狠狠爱 | 亚洲视频三 | 久久精品久久久久久 | 亚洲欧美日韩精品久久亚洲区 | 高清色视频 | 日韩毛片| 欧美一级二级视频 | 国外成人在线视频 | 在线观看国产91 | 欧美一级片在线观看 | 久久99精品视频 | 国产精品日本一区二区不卡视频 | 国产乱码精品一品二品 | 在线欧美小视频 | 天天干天天玩天天操 | 国产精品观看 | 黑人成人网 | 久久网一区二区 | 国产精品99久久久久 | 在线成人免费视频 | 国产激情精品视频 | 国产精品久久99 | 亚洲欧美中文日韩在线v日本 | 国产成人精品一区二区三区视频 | 欧美偷偷操 | 国产一区二区三区四区五区加勒比 | 羞羞视频网站免费观看 | 亚洲一区二区三区视频在线 | 中文字幕三区 | 最新日韩av| 日本午夜网 | 97精品超碰一区二区三区 | 日韩欧美在线视频 | 91影库| 欧美一区二区三区四区视频 | 精精国产xxxx视频在线野外 | 国产精品一区二区三区在线 |