AI_UIAutomation/locators/sensor-locators.ts

40 lines
1.2 KiB
TypeScript

import { ElementLocator } from '../drivers/types';
export const SENSOR_LOCATORS: Record<string, ElementLocator> = {
indicatorLightSwitch: {
name: 'Indicator Light switch',
ios: { using: 'name', value: 'Indicator Light' },
android: { using: 'text', value: 'Indicator Light' },
},
logsItem: {
name: 'Logs menu item',
ios: { using: 'name', value: 'Logs' },
android: { using: 'text', value: 'Logs' },
},
sceneItem: {
name: 'Scene/Automation menu item',
ios: { using: 'name', value: 'Scene' },
android: { using: 'text', value: 'Scene' },
},
settingsButton: {
name: 'Settings button',
ios: { using: 'name', value: 'Settings' },
android: { using: 'text', value: 'Settings' },
},
firmwareItem: {
name: 'Firmware & Battery menu item',
ios: { using: 'name', value: 'Firmware & Battery' },
android: { using: 'text', value: 'Firmware & Battery' },
},
deviceInfoItem: {
name: 'Device Info menu item',
ios: { using: 'name', value: 'Device Info' },
android: { using: 'text', value: 'Device Info' },
},
deleteItem: {
name: 'Delete menu item',
ios: { using: 'name', value: 'Delete' },
android: { using: 'text', value: 'Delete' },
},
};