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

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

      <bdo id='pGC1p'></bdo><ul id='pGC1p'></ul>
    <legend id='pGC1p'><style id='pGC1p'><dir id='pGC1p'><q id='pGC1p'></q></dir></style></legend>

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

      1. 量角器測試:如何設置登錄表單中文本元素的值

        Protractor testing: How to set the value of text elements in a login form?(量角器測試:如何設置登錄表單中文本元素的值?)

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

              <tbody id='gcLT2'></tbody>
            <tfoot id='gcLT2'></tfoot>
              <legend id='gcLT2'><style id='gcLT2'><dir id='gcLT2'><q id='gcLT2'></q></dir></style></legend>

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

                • 本文介紹了量角器測試:如何設置登錄表單中文本元素的值?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在 Protractor 中為 Angular 應用程序編寫測試.我想填寫登錄表單并提交.

                  I am writing tests in Protractor for an Angular app. I want to fill out a login form and submit it.

                  我該怎么做?我已經做到了這一點,但我不知道如何設置電子郵件和密碼字段的值.

                  How can I do this? I have got this far, but I don't know how to set the value of the email and password fields.

                  describe('The dashboard', function() {
                    ptor = protractor.getInstance();
                  
                    beforeEach(function() {
                      ptor.get('#/dashboard');
                      var email = ptor.findElement(protractor.By.model('email'));
                      var password = ptor.findElement(protractor.By.model('password'));
                      var submit = ptor.findElement(protractor.By.tagName('button'));
                      // Fill out the form?
                      submit.click();
                    });
                  
                    it('has a heading', function() {
                      heading = ptor.findElement(protractor.By.tagName('h1'));
                      expect(heading.getText()).toEqual('My Dashboard');
                    });
                  });
                  

                  推薦答案

                  只是為了任何通過谷歌找到這個的人的利益,答案是:

                  Just for the benefit of anyone who found this via Google, the answer is:

                  email.sendKeys('myemail@myemail.com');
                  password.sendKeys('mypassword');
                  

                  這篇關于量角器測試:如何設置登錄表單中文本元素的值?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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() 的限制?)
                    • <bdo id='CjxhO'></bdo><ul id='CjxhO'></ul>

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

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

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

                            主站蜘蛛池模板: 日日夜夜精品 | 一本综合久久 | 龙珠z在线观看 | 免费观看一级特黄欧美大片 | 亚洲69p| 亚洲毛片在线观看 | 国产男女视频网站 | 精品欧美一区二区三区久久久 | 国产高清av免费观看 | 特黄特色大片免费视频观看 | 一区二区三区播放 | 午夜电影福利 | 91精品久久久久久久久久入口 | 亚洲福利| 网色| www.色.com| 91在线看视频 | 欧美啪啪网站 | 国产有码| 日韩在线观看一区 | 久久国产视频播放 | 国产成人影院 | 中文字幕第十一页 | 超级黄色一级片 | 福利视频网站 | 91在线免费视频 | 欧美色a v| 一区二区三区免费观看 | 亚洲一区二区精品视频 | 午夜黄色影院 | 亚洲一区精品在线 | 玖玖玖av| 色婷婷亚洲一区二区三区 | 99国产视频 | 午夜久久av| 黄色大片免费观看 | 日韩中文字幕第一页 | 国产视频一区二区三区四区五区 | 国产精品99久久久久久久vr | 久久精品日| 国产成人一区二 |