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

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

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

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

      使用機器人框架腳本和 chromedriver 在 Android 設備中

      Opening Chrome browser in Android device using Robot Framework script and chromedriver?(使用機器人框架腳本和 chromedriver 在 Android 設備中打開 Chrome 瀏覽器?)

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

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

              1. <tfoot id='pNkgh'></tfoot>
              2. 本文介紹了使用機器人框架腳本和 chromedriver 在 Android 設備中打開 Chrome 瀏覽器?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                Ubuntu 14.04 上的自動化設置:

                Automation setup on Ubuntu 14.04:

                Robot Framework 2.9.2 (Python 2.7.6 on linux2)
                selenium2library-1.7.4
                ChromeDriver 2.20.353124
                Device under testing:  Nexus 7 (KitKat 4.4, Chrome v. 47)
                

                使用 Python 運行以下示例測試時一切正常--> URL 在 Nexus 設備的 Chrome 上正確啟動.

                Everything works fine when running this following example test with Python --> URL is launched properly on Chrome in Nexus device.

                    from selenium import webdriver
                capabilities = {
                  'chromeOptions': {
                    'androidPackage': 'com.android.chrome',
                  }
                }
                driver = webdriver.Remote('http://localhost:9515', capabilities)
                driver.get('http://google.com')
                driver.quit()
                

                但是當我嘗試使用 Robot Framework 腳本進行相同的工作時,實際問題存在.我已經嘗試了幾種方法,但它總是只在桌面 Chrome 瀏覽器上打開 URL——而不是在移動設備(Nexus 平板電腦)中.

                But actual problem exists when I try to get the same working with Robot Framework script. I've tried several ways but always it just opens URL on desktop Chrome browser - not in mobile (Nexus tablet) as it should be.

                以下 RF 腳本是我最近的嘗試.我認為問題在某種程度上與 desired_capabilities 有關,但我只是沒有找到正確的定義方式

                The following RF script was my latest try. I think problem is related somehow to desired_capabilities but I just haven't find the correct way how it should be defined

                *** Settings ***
                Library         Selenium2Library
                *** Variables ***
                ${chromedriver}    http://localhost:9515
                ${android} =    Create List   androidPackage    com.android.chrome  
                ${desired_capabilities} =    Create Dictionary   {chromedriver}    chromeOptions    ${android}
                
                *** Keywords ***
                Open Page
                    Open Browser    http://www.google.com 
                    ... browser=chrome   
                    ... desired_capabilities=${desired_capabilities}
                

                有人遇到同樣的問題嗎?我做錯了什么?

                Anyone had same issue? What I'm doing wrong?

                推薦答案

                所需的功能參數是 不是為本地網絡驅動程序處理.在解決此問題之前,您可以使用更靈活的 Create Webdriver 關鍵字代替 Open Browser.我不能說這是否是在 Android 上啟動 Chrome 的最佳方式,但這里是您的 Python 代碼的直接翻譯:

                The desired capabilities argument is not processed for local webdrivers. Until that is resolved you can use the more flexible Create Webdriver keyword instead of Open Browser. I cannot speak to whether this is the best way to launch Chrome on Android, but here is a direct translation of your Python code:

                ${options}=    Create Dictionary    androidPackage=com.android.chrome
                ${caps}=    Create Dictionary    chromeOptions=${options}
                Create Webdriver    Remote    command_executor=http://localhost:9515    desired_capabilities=${caps}
                Go To    http://google.com
                Close Browser
                

                這篇關于使用機器人框架腳本和 chromedriver 在 Android 設備中打開 Chrome 瀏覽器?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                Get current location during app launch(在應用啟動期間獲取當前位置)
                locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

                    <tbody id='A58cZ'></tbody>
                  • <tfoot id='A58cZ'></tfoot>
                      <bdo id='A58cZ'></bdo><ul id='A58cZ'></ul>
                      <legend id='A58cZ'><style id='A58cZ'><dir id='A58cZ'><q id='A58cZ'></q></dir></style></legend>

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

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

                        • 主站蜘蛛池模板: h视频在线免费看 | 国产免费又黄又爽又刺激蜜月al | 欧美日韩综合精品 | 色一级片| 国产一区二区自拍 | 日屁视频 | 国产精久久久久久久 | 久久久久亚洲视频 | 久一久| 成人一区在线观看 | 成年人免费在线视频 | 7799精品视频天天看 | 国产日韩一区二区三免费高清 | 亚洲成人精品在线 | 99久久婷婷国产综合精品电影 | 亚洲国产精品99久久久久久久久 | 国产91在线播放 | 欧美天堂在线 | 成人超碰在线 | 亚洲成人一级 | 精品欧美乱码久久久久久 | 国产精品中文字幕一区二区三区 | 久久久这里都是精品 | 色综合99| 日韩成人中文字幕 | 国产一区二区麻豆 | 久久丝袜| 自拍偷拍亚洲欧美 | 97精品超碰一区二区三区 | 亚洲视频欧美视频 | 国产综合精品一区二区三区 | 日韩在线视频观看 | 亚洲第1页| 国产1区2区在线观看 | 欧美日韩久久 | 婷婷久久综合 | 成人网视频 | 中文字幕亚洲精品 | 日本黄色免费视频 | 美女亚洲一区 | 福利久久|