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

<tfoot id='Xlz7h'></tfoot>

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

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

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

        量角器檢查元素是否不存在

        Protractor Check if Element Does Not Exist(量角器檢查元素是否不存在)
        <i id='XA731'><tr id='XA731'><dt id='XA731'><q id='XA731'><span id='XA731'><b id='XA731'><form id='XA731'><ins id='XA731'></ins><ul id='XA731'></ul><sub id='XA731'></sub></form><legend id='XA731'></legend><bdo id='XA731'><pre id='XA731'><center id='XA731'></center></pre></bdo></b><th id='XA731'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='XA731'><tfoot id='XA731'></tfoot><dl id='XA731'><fieldset id='XA731'></fieldset></dl></div>

      1. <tfoot id='XA731'></tfoot>

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

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

                  本文介紹了量角器檢查元素是否不存在的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我在基于 Angular 的網(wǎng)站中有一個設(shè)置可以打開和關(guān)閉下拉菜單.如果它關(guān)閉,則它不會顯示在主頁上.

                  I have a setting in my angular based website that turns a dropdown on and off. If it is off, then it does not show on the main page.

                  使用量角器,我需要檢查開關(guān)關(guān)閉時是否不存在此元素.但是,我不應(yīng)該陷入 Element Not Found Error,因?yàn)樗且唤M測試中的一個.我該怎么做?

                  With Protractor, I need to check to see if this element is not present when the switch is off. However, I should not be thrown into Element Not Found Error, as it is one test in a set of many. How should I do this?

                  我已經(jīng)嘗試過:

                  expect($$('.switch').count()).to.equal(0).and.notify(next);
                  

                  但是我收到了一個 AssertionError ......

                  But I am getting an AssertionError with this...

                  推薦答案

                  通過使用我在文檔中找到的東西來解決問題:

                  Got the thing working by using something I found in the docs:

                  expect(element(by.css('.switch')).isPresent()).to.become(false).and.notify(next);
                  

                  也使用斷言,所以它不會破壞 cucumberjs.

                  Also uses assertions, so it doesn't break cucumberjs.

                  這篇關(guān)于量角器檢查元素是否不存在的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調(diào)用完成)
                  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標(biāo)頭) - IT屋-程序員軟件開發(fā)技術(shù)分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                    <tbody id='I5dmP'></tbody>
                  <tfoot id='I5dmP'></tfoot>
                  <i id='I5dmP'><tr id='I5dmP'><dt id='I5dmP'><q id='I5dmP'><span id='I5dmP'><b id='I5dmP'><form id='I5dmP'><ins id='I5dmP'></ins><ul id='I5dmP'></ul><sub id='I5dmP'></sub></form><legend id='I5dmP'></legend><bdo id='I5dmP'><pre id='I5dmP'><center id='I5dmP'></center></pre></bdo></b><th id='I5dmP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='I5dmP'><tfoot id='I5dmP'></tfoot><dl id='I5dmP'><fieldset id='I5dmP'></fieldset></dl></div>

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

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

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

                            主站蜘蛛池模板: 久久av综合 | 精品欧美一区二区三区久久久 | 亚洲欧美一区二区三区国产精品 | 色精品 | a级免费黄色片 | 国产女人叫床高潮大片免费 | 亚洲狠狠丁香婷婷综合久久久 | 久色激情| 国产一区2区 | 高清视频一区二区三区 | 欧美日韩国产中文字幕 | 欧美日韩大片 | 久久精品国产一区 | 久久99精品久久久久久国产越南 | 日本国产精品视频 | 最近中文字幕免费 | 在线免费av电影 | 亚洲国产精品一区二区三区 | 鸡毛片 | 欧美激情久久久 | 久久久高清 | 一级做a爰片久久毛片免费看 | 欧美成年人视频在线观看 | 国产激情91久久精品导航 | 性一爱一乱一交一视频 | 欧美a级成人淫片免费看 | 黄色毛片一级 | 日韩欧美中文 | 国产精品视频入口 | 91精品国产91久久久久久密臀 | 午夜免费网站 | 日韩视频一区二区三区 | 夜夜爽99久久国产综合精品女不卡 | 亚洲成人一区二区 | 国产精品不卡 | 日韩在线一区视频 | 在线中文视频 | 国产成人综合在线 | 精品二区 | 草久久久 | 亚洲精品视频在线播放 |