久久久久久久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>

      使用機(jī)器人框架腳本和 chromedriver 在 Android 設(shè)備中

      Opening Chrome browser in Android device using Robot Framework script and chromedriver?(使用機(jī)器人框架腳本和 chromedriver 在 Android 設(shè)備中打開 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. 本文介紹了使用機(jī)器人框架腳本和 chromedriver 在 Android 設(shè)備中打開 Chrome 瀏覽器?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                Ubuntu 14.04 上的自動化設(shè)置:

                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 運(yùn)行以下示例測試時一切正常--> URL 在 Nexus 設(shè)備的 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()
                

                但是當(dāng)我嘗試使用 Robot Framework 腳本進(jìn)行相同的工作時,實際問題存在.我已經(jīng)嘗試了幾種方法,但它總是只在桌面 Chrome 瀏覽器上打開 URL——而不是在移動設(shè)備(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 腳本是我最近的嘗試.我認(rèn)為問題在某種程度上與 desired_capabilities 有關(guān),但我只是沒有找到正確的定義方式

                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?

                推薦答案

                所需的功能參數(shù)是 不是為本地網(wǎng)絡(luò)驅(qū)動程序處理.在解決此問題之前,您可以使用更靈活的 Create Webdriver 關(guān)鍵字代替 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
                

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

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

                相關(guān)文檔推薦

                Get user#39;s current location using GPS(使用 GPS 獲取用戶的當(dāng)前位置)
                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 或網(wǎng)絡(luò)提供商)
                Get current location during app launch(在應(yīng)用啟動期間獲取當(dāng)前位置)
                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>

                        • 主站蜘蛛池模板: 一级毛片网| 精品无码久久久久久国产 | 国产成人麻豆免费观看 | 91青娱乐在线 | 成人精品一区二区户外勾搭野战 | 福利av在线 | 99精品网 | 天天射夜夜操 | 午夜精品久久久久久久久久久久 | 日韩在线免费视频 | 人人做人人澡人人爽欧美 | 日韩视频一区 | 国产区一区二区三区 | 户外露出一区二区三区 | 成人在线欧美 | 高清欧美性猛交 | 欧美日高清视频 | 欧美日韩综合视频 | 99九九视频 | 在线观看电影av | 91精品国产手机 | 色女人天堂 | 99久久久国产精品 | 精品一二三区视频 | av黄色国产 | 日韩精品免费一区二区在线观看 | 成人网av| 久久另类视频 | 国产精品s色 | 日韩成人av在线 | 亚洲一区二区久久 | 亚洲成人一区二区 | 性生生活大片免费看视频 | 五月免费视频 | 日韩中文字幕在线观看 | 成人性生交大片免费看中文带字幕 | 中文字幕在线欧美 | 国产视频一区二区在线观看 | 亚洲区视频 | 久久久久久久一区 | 国产乱码精品一区二区三区五月婷 |