from selenium import webdriver
from time import ctime
import yaml
import logging
import logging.config
import os
import multiprocessing
con_log = '../config/log.conf'
logging.config.fileconfig(con_log)
logging = logging.getlogger()
divice_list = ['127.0.0.1:62001', '127.0.0.1:62025']
with open('../config/kyb_caps.yaml', 'r', encoding='utf-8') as file:
data = yaml.load(file, loader=yaml.fullloader)#解決檔案沒有被釋放的問題
base_path = os.path.dirname(os.path.dirname(__file__))
desired_caps = {}
desired_caps['platformname'] = data['platformname'] # android的apk還是ios的ipa
desired_caps['platformversion'] = data['platformversion'] # android系統的版本號
desired_caps['udid'] = udid # 手機裝置名稱,通過adb devices 檢視
desired_caps['devicename'] = udid
# 不需要再次簽名
desired_caps['nosign'] = data['nosign']
# 不需要清理資料,避免重新安裝的問題
desired_caps['noreset'] = data['noreset']
# desired_caps['unicodekeyboard'] = true #使用unicodekeyboard的編碼方式來傳送字串,中文方式
# desired_caps['resetkeyboard'] = true #將鍵盤給隱藏起來
adb如何連線mumu模擬器
win版 模擬移動端首次安裝手指滑動操作 webdriver defget driver capabilities driver webdriver.remote capabilities return driver driver.swipe x,y,x1,y1 driver.swipe 500,4...
weex 啟動 ios 模擬器
前提需要的安裝 node npmweex toolkit cocoapods 1.建立weex工程 weex create hellowolrd 2.進入hellowolrd資料夾安裝依賴,我用cnpm install的話就會報錯,這裡最好用npm install npm install 3.新增i...
如何啟動android模擬器的pin碼
在android原始碼的external qemu telephony 目錄下找到sim card.c檔案,修改為 asimcard asimcard create void 然後重新make原始碼,完成後將out host linux x86 bin目錄下的emulator可執行檔案覆蓋到andr...