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

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

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

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

        如何在window x64上的python中記錄selenium webdriver測試

        how to record selenium webdriver test executions in python on window x64(如何在window x64上的python中記錄selenium webdriver測試執行)
          <legend id='s5xYO'><style id='s5xYO'><dir id='s5xYO'><q id='s5xYO'></q></dir></style></legend>

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

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

                • 本文介紹了如何在window x64上的python中記錄selenium webdriver測試執行的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  使用 python 綁定 selenium3 webdriver 進行測試自動化,使用 castro 記錄執行步驟,但在 Windows 7 x64 上失敗.

                  Using python binding selenium3 webdriver for test automation, to record execution steps using castro but it is failing on Windows 7 x64.

                  是否有任何其他庫或模塊可用于記錄目的

                  Is there any other library or module which can be used for recording purpose

                  帶有 castro 的代碼

                  Code with castro

                  from castro import Castro
                  from selenium import webdriver
                  from selenium.webdriver.common.keys import Keys
                  from time import sleep
                  
                  def my_video_record():
                      castroObject = Castro(filename="video/mytest.swf")
                      castroObject.start()
                      firefoxDriver = webdriver.Firefox(executable_path="firefox_geckodriver64bit/geckodriver")
                      firefoxDriver.get("https://www.python.org")
                      assert "Python" in firefoxDriver.title
                      sleep(1)
                      firefoxDriver.quit()
                      castroObject.stop()
                  
                  if __name__ == '__main__':
                      my_video_record()
                  

                  但它會在我的 Windows7 x64 上引發錯誤

                  But it throws error on my Windows7 x64

                  Socket error: [Errno 10061] No connection could be made because the target machine actively refused it
                  Process Process-1:
                  Traceback (most recent call last):
                    File "D:Python27libmultiprocessingprocess.py", line 258, in _bootstrap
                      self.run()
                    File "D:Python27libmultiprocessingprocess.py", line 114, in run
                      self._target(*self._args, **self._kwargs)
                    File "D:Python27libsite-packagescastrolibpyvnc2swfvnc2swf.py", line 611, in main
                      merge=merge, debug=debug, reconnect=reconnect)
                    File "D:Python27libsite-packagescastrolibpyvnc2swfvnc2swf.py", line 429, in vnc2swf
                      client.loop()
                    File "D:Python27libsite-packagescastrolibpyvnc2swf
                  fb.py", line 489, in loop
                      if not self.loop1(): break
                    File "D:Python27libsite-packagescastrolibpyvnc2swf
                  fb.py", line 276, in loop1
                      self.request_update()
                    File "D:Python27libsite-packagescastrolibpyvnc2swf
                  fb.py", line 551, in request_update
                      self.send('x03x01' + pack('>HHHH', *self.clipping))
                  AttributeError: RFBNetworkClient instance has no attribute 'clipping'
                  

                  推薦答案

                  我不推薦使用 castro.它真的過時了,我已經嘗試在自己的測試中使用它并且確實讓它運行但它太不穩定了.

                  I do not recommend using castro. It's really outdated, I've tried using it in my own tests and did get it running but it was too unstable.

                  我目前正在使用 (屏幕錄制軟件),它就像一個魅力.它允許您設置幀率、分辨率、比特率以及選擇不同的視頻編解碼器.

                  I'm currently using ffmpeg together with screen-capture-recorder (screen recording software) and it works like a charm. It allows you to set the framerate, resolution, bitrate as well as chose different video codec.

                  代碼如下所示:

                  from subprocess import Popen
                  from subprocess import call
                  
                  cmd = 'ffmpeg -y -rtbufsize 2000M -f dshow  -i video="screen-capture-recorder" -s 1920x1080 -b:v 512k -r 20 -vcodec libx264 test.avi'
                  
                  def terminate(process):
                      if process.poll() is None:
                          call('taskkill /F /T /PID ' + str(process.pid))
                  
                  videoRecording = Popen(cmd) # start recording
                  
                  terminate(videoRecording)   # terminates recording
                  

                  這篇關于如何在window x64上的python中記錄selenium webdriver測試執行的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 包)

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

                        <tbody id='6FGvP'></tbody>
                      • <legend id='6FGvP'><style id='6FGvP'><dir id='6FGvP'><q id='6FGvP'></q></dir></style></legend>
                        • <bdo id='6FGvP'></bdo><ul id='6FGvP'></ul>

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

                            主站蜘蛛池模板: 日韩成人免费 | 亚洲色图插插插 | 一级看片免费视频囗交动图 | 成人免费看黄网站在线观看 | 国产精品一级在线观看 | 成人久久18免费网站 | 日韩精品一区在线 | 国产精品免费一区二区三区四区 | 亚洲视频免费观看 | 久草免费在线视频 | 你懂的在线视频播放 | 日韩国产欧美 | 亚洲精品国产电影 | 青青草av | 亚洲一区二区视频 | 亚洲一区二区三区免费在线观看 | 国产1区2区 | 国产精品亚洲一区二区三区在线 | 国产福利在线 | 中文字幕色站 | 成人性视频免费网站 | av乱码| a精品视频| 日韩在线免费 | 天堂三级 | 金莲网 | 日韩影院在线观看 | 欧美日韩1区2区3区 欧美久久一区 | 日韩精品一区二区三区视频播放 | 免费观看一级特黄欧美大片 | 亚洲自拍偷拍免费视频 | 日韩国产中文字幕 | 欧美日韩看片 | 中文字幕精品一区 | 国产激情在线看 | 亚洲精品视频在线观看视频 | 一区二区三区四区在线视频 | 国产免费拔擦拔擦8x高清 | 97av视频在线观看 | 欧美日韩在线视频一区 | 国产一区二区精品在线观看 |