AI_UIAutomation/locators/light-locators.ts

75 lines
2.2 KiB
TypeScript

import { ElementLocator } from '../drivers/types';
export const LIGHT_LOCATORS: Record<string, ElementLocator> = {
powerButton: {
name: 'Power button',
ios: { using: 'name', value: 'Power' },
android: { using: 'text', value: 'Power' },
},
nightLightButton: {
name: 'Night Light button',
ios: { using: 'name', value: 'Night Light' },
android: { using: 'text', value: 'Night Light' },
},
fullLightButton: {
name: 'Full Light button',
ios: { using: 'name', value: 'Full Light' },
android: { using: 'text', value: 'Full Light' },
},
whiteMode: {
name: 'White mode tab',
ios: { using: 'name', value: 'White' },
android: { using: 'text', value: 'White' },
},
colorMode: {
name: 'Color mode tab',
ios: { using: 'name', value: 'Color' },
android: { using: 'text', value: 'Color' },
},
dynamicMode: {
name: 'Dynamic mode tab',
ios: { using: 'name', value: 'Dynamic' },
android: { using: 'text', value: 'Dynamic' },
},
musicMode: {
name: 'Music mode tab',
ios: { using: 'name', value: 'Music' },
android: { using: 'text', value: 'Music' },
},
sceneMode: {
name: 'Scene mode tab',
ios: { using: 'name', value: 'Scene' },
android: { using: 'text', value: 'Scene' },
},
scheduleItem: {
name: 'Schedule menu item',
ios: { using: 'name', value: 'Schedule' },
android: { using: 'text', value: 'Schedule' },
},
delayItem: {
name: 'Delay menu item',
ios: { using: 'name', value: 'Delay' },
android: { using: 'text', value: 'Delay' },
},
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' },
},
};