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

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

      <tfoot id='OFA8F'></tfoot>
    1. <small id='OFA8F'></small><noframes id='OFA8F'>

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

      1. 如何在桌面瀏覽器上使用 webdriver mobile web

        How to use webdriver mobile web on desktop browser(如何在桌面瀏覽器上使用 webdriver mobile web)

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

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

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

              <tbody id='JfHLv'></tbody>
                <legend id='JfHLv'><style id='JfHLv'><dir id='JfHLv'><q id='JfHLv'></q></dir></style></legend>
                  本文介紹了如何在桌面瀏覽器上使用 webdriver mobile web的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 selenium webdriver 進行 AUT(被測應用程序)的功能測試自動化.AUT 是響應式網絡,我幾乎完成了桌面瀏覽器的不同測試用例.

                  I am using selenium webdriver for functional test automation of AUT (Application Under Test). AUT is responsive web and i am almost done with different test case for desktop browser.

                  現在相同的測試用例也適用于移動瀏覽器,因為可以從移動瀏覽器訪問 AUT.因為當我們在移動瀏覽器中打開時它是響應式網絡,所以 UI 有一些不同的表示.所以我們也需要為移動瀏覽器運行這些測試.對于使用 safari 瀏覽器的用戶代理功能的手動測試團隊

                  Now the same test cases are applicable for mobile browser as well because the AUT can be accessed from mobile browser. As it is responsive web when we open in mobile browser the UI has some different representation. So we need to run those test for mobile browsers as well. For manual testing team using safari browser's user agent feature

                  Safari瀏覽器菜單->開發->用戶代理

                  Safari Browser menu - > Develop -> User Agent

                  它滿足了我們手動測試的需求.

                  and it satisfies our need for manual testing.

                  如果我們可以用自動化來做類似的事情,即用一些 twik 在桌面瀏覽器上運行測試,那么它也可以被認為是移動網絡自動化完成.我的問題是如何在使用 Web 驅動程序時做同樣的事情,比如修改標題.url 相同,因為只有一個 web 應用程序.

                  If we can do the similar thing with automation, i.e. running test on desktop browser with some twik, then it is also accepted to considered as mobile web automation done. My question is how can i do the same thing like modify header, while using web driver. The url is the same because there is only one web app.

                  我的自動化測試在使用 FirefoxDriver 和 chromeDriver 的 Firefox 上運行良好.兩種瀏覽器都有類似的開發工具可用,但我無法通過自動化來使用它.

                  My automated test are working fine on firefox using FirefoxDriver and chromeDriver. Both browser has similar development tools available but i am not able to utilise it through automation.

                  我們使用的是 selenium 2.53.0.我們的 IVY 文件有以下與 selenium 相關的依賴項.

                  We are using selenium 2.53.0. Our IVY file has following dependencies related to selenium.

                  <dependency org="org.seleniumhq.selenium" name="selenium-remote-driver" rev="2.53.0"/>
                  <dependency org="org.seleniumhq.selenium" name="selenium-java" rev="2.53.0"/>
                  

                  任何人都可以提供建議和幫助,我如何運行我的測試來實現它以及我需要做哪些相關的代碼更改?

                  Can anybody provide suggestions and help that how can i run my test to achieve it and what are the related code changes i need to do?

                  謝謝.

                  推薦答案

                  Google Chrome 提供了一種在您實例化驅動程序時模擬移動設備的機制,請參閱完整文檔 這里.

                  Google Chrome provides a mechanism for emulating mobile devices when you instantiate the driver, see the full docs here.

                  例子:

                  Map<String, String> mobileEmulation = new HashMap<String, String>();
                  mobileEmulation.put("deviceName", "Google Nexus 5");
                  Map<String, Object> chromeOptions = new HashMap<String, Object>();
                  chromeOptions.put("mobileEmulation", mobileEmulation);
                  DesiredCapabilities capabilities = DesiredCapabilities.chrome();
                  capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
                  WebDriver driver = new ChromeDriver(capabilities);
                  

                  這篇關于如何在桌面瀏覽器上使用 webdriver mobile web的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)

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

                        <small id='6x6wl'></small><noframes id='6x6wl'>

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

                            主站蜘蛛池模板: ririsao久久精品一区 | 中文字幕 在线观看 | www.av在线| 91麻豆蜜桃一区二区三区 | 一区二区三区国产 | 久久免费香蕉视频 | a在线免费观看 | 欧美黄视频 | 亚洲成人观看 | 欧洲精品码一区二区三区免费看 | 国产精品视频一区二区三区 | 日本h片在线观看 | 欧美成人h版在线观看 | 韩日精品在线观看 | 黄色精品 | 91免费看片 | 日本一二区视频 | av国产精品 | 亚洲综合大片69999 | 欧美日韩在线一区二区 | 国产综合久久久久久鬼色 | 欧美在线视频二区 | 亚洲精品日韩欧美 | 亚洲二区在线观看 | 欧美偷偷 | 欧美一二三四成人免费视频 | 成人性视频在线播放 | 欧美精品91爱爱 | 欧美日韩一区二区三区在线观看 | 亚洲成人av在线播放 | 黄色一级毛片免费看 | 欧美国产精品 | 国产高清视频 | 欧美综合久久 | 亚洲激情一区二区三区 | 婷婷开心激情综合五月天 | 欧美久久久久久 | 亚洲国产精品一区在线观看 | 日韩高清不卡 | 日韩一区二区免费视频 | 欧美激情在线播放 |