تخطى إلى المحتوى الرئيسي

getPerformanceDataTypes

Returns the information types of the system state which is supported to read as part of performance data (e.g. cpu, memory, network traffic, battery).

Note: Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the mobile: execute method.

Usage
browser.getPerformanceDataTypes()
Example
getPerformanceDataTypes.js
it('should get the supported performance data types', async () => {
const types = await browser.getPerformanceDataTypes()
console.log('Supported types:', types)
})
Returns
  • <Promise<string[]>> returns: A list of supported performance data type names
Support

Support for android

ملاحظة

Refer to the official Appium driver documentation to see which driver versions support this command.

Welcome! How can I help?

WebdriverIO AI Copilot