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

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

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

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

      如何使用 selenium 2 檢查網頁上是否存在某些文本

      How to check if some text is present on a web page using selenium 2?(如何使用 selenium 2 檢查網頁上是否存在某些文本?)
        <i id='JHm4t'><tr id='JHm4t'><dt id='JHm4t'><q id='JHm4t'><span id='JHm4t'><b id='JHm4t'><form id='JHm4t'><ins id='JHm4t'></ins><ul id='JHm4t'></ul><sub id='JHm4t'></sub></form><legend id='JHm4t'></legend><bdo id='JHm4t'><pre id='JHm4t'><center id='JHm4t'></center></pre></bdo></b><th id='JHm4t'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='JHm4t'><tfoot id='JHm4t'></tfoot><dl id='JHm4t'><fieldset id='JHm4t'></fieldset></dl></div>

      1. <legend id='JHm4t'><style id='JHm4t'><dir id='JHm4t'><q id='JHm4t'></q></dir></style></legend>

              <tbody id='JHm4t'></tbody>

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

            <tfoot id='JHm4t'></tfoot>
            • <bdo id='JHm4t'></bdo><ul id='JHm4t'></ul>

              • 本文介紹了如何使用 selenium 2 檢查網頁上是否存在某些文本?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                您好,我正在使用 selenium 對網頁進行自動化測試.我正在使用 selenium 2 和 python,并且只想在這個框架中得到答案.那么如何檢查是否存在某些文本?我試過資產equals但它不起作用?

                Hi I am using selenium to automate test on web pages. I am using selenium 2 and python and would like to have answers in this framework only. SO how do I check whether some text is present or not? I have tried asset equals but it is not working?

                assertEquals(driver.getPageSource().contains("email"), true);
                

                推薦答案

                對于那些仍然感興趣的人:

                For those of you who are still interested:

                通用解決方案

                if text in driver.page_source:
                    # text exists in page
                

                單元測試:

                assertTrue(text in driver.page_source)
                

                pytest:

                assert text in driver.page_source
                

                這篇關于如何使用 selenium 2 檢查網頁上是否存在某些文本?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個模塊和類)
                Configuring Python to use additional locations for site-packages(配置 Python 以使用站點包的其他位置)
                How to structure python packages without repeating top level name for import(如何在不重復導入頂級名稱的情況下構造python包)
                Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                How to refresh sys.path?(如何刷新 sys.path?)
                Distribute a Python package with a compiled dynamic shared library(分發帶有已編譯動態共享庫的 Python 包)

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

                        <tbody id='nkLRI'></tbody>
                    • <tfoot id='nkLRI'></tfoot>

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

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

                        1. 主站蜘蛛池模板: 一区二区三区视频在线 | 国产成人精品一区二区三区在线 | 91大神xh98xh系列全部 | av黄色免费在线观看 | 天天操天天插 | 人操人人| 伊人网91 | 成人三级网址 | av网站免费 | av黄色网 | 国产亚洲精品久久久优势 | 瑟瑟免费视频 | 亚洲手机在线 | 四虎影视免费观看 | 日本久久一区 | 啪啪精品 | 91天堂| 亚洲一区二区三区免费视频 | 国产精品久久久一区二区三区 | 丁香久久 | 国产91精品网站 | 日韩在线视频一区二区三区 | 国内精品久久久久 | 黄色一级特级片 | 国产精品国产成人国产三级 | 日韩欧美国产精品一区二区 | 中文一区二区视频 | 亚洲一区二区三区在线 | 日韩精品中文字幕一区二区三区 | 精品国产乱码久久久久久蜜退臀 | 欧美日韩在线观看一区二区三区 | 欧美日韩成人网 | 国产欧美精品一区 | 国产精品久久久久久一区二区三区 | 草逼网站 | 亚洲国产精品一区二区久久 | 三级黄色片在线播放 | 国产午夜精品一区二区三区四区 | 亚洲精品一区在线观看 | 1级毛片 | 亚洲看片网站 |