設定蘋果機引數

2022-03-18 06:46:00 字數 1318 閱讀 3822

其中 【newcommandtimeout】是 查詢某個頁面的元素時,定位可能會時間超長。預設的命令間隔時間是60s,如果在60s內沒有找到,就會自動退出

自己成功啟動過的頭部

# 呼叫日誌功能

logger=public.log()

# iphone5s

desired_caps = {}

desired_caps['automationname'] = 'xcuitest' # xcode8.2以上無uiautomation,需使用xcuitest

desired_caps['platformname'] = 'ios'

desired_caps['devicename'] = 'iphone 5s'

desired_caps['bundleid'] = 'com.ibroker.iberhk'

desired_caps['platformversion'] = '10.3.2'

desired_caps['udid'] = 'd51e693a7638597890aac74de3f13ec5f884f036' #自己iphone 5s

desired_caps['newcommandtimeout'] = 3600 # 1 hour

# sys.exit()

# # iphone6 plus

# desired_caps = {}

# desired_caps['automationname'] = 'xcuitest' # xcode8.2以上無uiautomation,需使用xcuitest

# desired_caps['platformname'] = 'ios'

# desired_caps['devicename'] = 'iphone 6 plus'

# desired_caps['bundleid'] = 'com.ibroker.iberhk'

# desired_caps['platformversion'] = '11.2.6'

# desired_caps['udid'] = '2f8e523a430d1c2577803bbcdd7dd5a48eabdc9a'

# desired_caps['newcommandtimeout'] = 360 # 1 hour

# desired_caps["xcodesigningid"] = "iphone developer" #必須

# desired_caps["xcodeorgid"] = "atk47js422" #必須

蘋果機上的Git

git官方 官方推薦安裝包for mac git中文手冊 下面是3個mac上的git圖形客戶端 git自帶的git gui,在包含git init完畢後含有.git配置檔案的目錄下執行下面命令就可以啟動它 git gui這個程式依賴tcltkaqua 執行前必須安裝它 gitx homepage g...

蘋果機HFS 檔案系統的幾個特性

u 在hfs 檔案系統中,磁碟被 分成512位元組的邏輯塊,稱為 扇區 所有的扇區從0開始編號,直到磁碟的最大扇區數減1。u 在乙個檔案卷內,hfs 把所有的扇區分成等大的組,稱其為 分配塊 allocateion blocks 乙個分配塊占用一組連續的扇區。hfs 中的分配塊類似於 fat32 n...

蘋果機的時間格式轉換為時間搓

在蘋果機上的時間戳轉換格式為 yyyy mm dd hh mm ss 其他個格式去轉換都會是nanconsole.log new date new date console.log new date gettime new date gettime console.log date.parse ne...