Open luoxiao1008 opened 1 year ago
{ "boundElementsByIndex": false, "mjpegServerFramerate": 10, "screenshotOrientation": "auto", "reduceMotion": false, "elementResponseAttributes": "type,label", "screenshotQuality": 1, "mjpegScalingFactor": 100, "keyboardPrediction": 0, "defaultActiveApplication": "auto", "mjpegServerScreenshotQuality": 25, "defaultAlertAction": "", "keyboardAutocorrection": 0, "useFirstMatch": false, "shouldUseCompactResponses": true, "customSnapshotTimeout": 15, "dismissAlertButtonSelector": "", "activeAppDetectionPoint": "64.00,64.00", "snapshotMaxDepth": 50, "waitForIdleTimeout": 10, "includeNonModalElements": false, "acceptAlertButtonSelector": "", "animationCoolOffTimeout": 2 }
另外,使用中发现页面的元素稍微多一点,调用元素的get()方法就很慢,10多秒才找到元素,然后再tap()的时候又会消耗5-6s,如果把snapshotMaxDepth改小一点又找不到元素,请问有啥配置可以让元素查找更快一点的,或者说有其他的方法可以优化?
这个可能是你需要的 https://www.kancloud.cn/testerhome/appium_docs_cn/2001917
谢谢大佬
{ "boundElementsByIndex": false, "mjpegServerFramerate": 10, "screenshotOrientation": "auto", "reduceMotion": false, "elementResponseAttributes": "type,label", "screenshotQuality": 1, "mjpegScalingFactor": 100, "keyboardPrediction": 0, "defaultActiveApplication": "auto", "mjpegServerScreenshotQuality": 25, "defaultAlertAction": "", "keyboardAutocorrection": 0, "useFirstMatch": false, "shouldUseCompactResponses": true, "customSnapshotTimeout": 15, "dismissAlertButtonSelector": "", "activeAppDetectionPoint": "64.00,64.00", "snapshotMaxDepth": 50, "waitForIdleTimeout": 10, "includeNonModalElements": false, "acceptAlertButtonSelector": "", "animationCoolOffTimeout": 2 }