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

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

        <bdo id='uUP6p'></bdo><ul id='uUP6p'></ul>
    1. <tfoot id='uUP6p'></tfoot>

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

        使用量角器在列表中選擇第二個錨元素

        Selecting second anchor element within lists using protractor(使用量角器在列表中選擇第二個錨元素)
            <bdo id='JwWJu'></bdo><ul id='JwWJu'></ul>
              <legend id='JwWJu'><style id='JwWJu'><dir id='JwWJu'><q id='JwWJu'></q></dir></style></legend>
              <tfoot id='JwWJu'></tfoot>

                <tbody id='JwWJu'></tbody>

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

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

                  本文介紹了使用量角器在列表中選擇第二個錨元素的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個錨標記列表,并且必須測試單擊列表中的第二個標記.

                  I have a list of anchor tags and have to test clicking the 2nd tag in the list.

                  <ul id="shortcuts">
                      <li><a ui-sref="app.journeyExplorer" href="#/journey-explorer/"><span class="ng-binding">1</span></a></li>
                      <li><a ui-sref="app.userGroupManager" href="#/user-group-manager"><span class="ng-binding">2</span></a></li>
                  </ul>
                  

                  經過大量調查和測試得出的結論是正確的說法應該是:

                  After much investigation and testing reached at the conclusion that the correct statement should be:

                  element(By.id('shortcuts')).element(By.tagName('a')).get(1).click();
                  

                  但它顯示未定義.如果我使用 get() 它不起作用.沒有得到它單擊列表中的第一個錨標記并發出警告:找到多個錨標記,在這種情況下選擇第一個錨標記"

                  But it shows undefined. If I use get() it doesn't work. without get it clicks the 1st anchor tag in the list with a warning: 'More than one anchor tag found, in such case the 1st one is selected'

                  有人可以幫忙嗎?謝謝.

                  Can someone please help out with this ? Thanks.

                  推薦答案

                  你可能想試試下面的選擇器(注意 all() 而不是第二個 element()匹配所有錨點(以便接下來出現的 .get() 有意義.

                  You might want to try selector below (note all() instead of second element() to match all anchors (so that .get() that comes next makes any sense.

                  element(By.id('shortcuts')).all(By.tagName('a')).get(1).click();
                  

                  或通過 .css

                  element(By.css('#shortcuts a:nth-child(1)').click();
                  

                  這篇關于使用量角器在列表中選擇第二個錨元素的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='WvVYr'></tfoot>

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

                      <tbody id='WvVYr'></tbody>

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

                      • <legend id='WvVYr'><style id='WvVYr'><dir id='WvVYr'><q id='WvVYr'></q></dir></style></legend>

                            主站蜘蛛池模板: 国产成人精品免费视频大全最热 | 欧美中文 | 99成人在线视频 | 国产在线一区二区三区 | 欧美日一区二区 | 久久精品中文 | 一区中文字幕 | 人人爽人人爽 | 国产成人精品免费 | 国产精品欧美精品日韩精品 | 免费在线一区二区三区 | 午夜亚洲 | av手机在线 | 成人在线一区二区 | 国产精品一区二区三区在线播放 | 亚洲精品第一 | 91精品久久久 | 拍拍无遮挡人做人爱视频免费观看 | 中文字幕免费观看 | 亚洲免费人成在线视频观看 | 亚洲视频在线一区 | 久久久久久久电影 | 欧美国产视频一区二区 | 一区二区三区四区在线视频 | 国产日产精品一区二区三区四区 | 欧美日日 | 国产成人高清视频 | 日韩在线国产精品 | 国产1页 | 网色 | 国产精品资源在线 | 真人女人一级毛片免费播放 | 亚洲综合色视频在线观看 | 国产在线观看免费 | 在线看免费的a | 亚洲美女天堂网 | 色五月激情五月 | 人人九九精 | 天天操天天干天天透 | 九九久久免费视频 | 亚洲视频一区在线观看 |