AI_UIAutomation/locators/fan-locators.ts

75 lines
2.3 KiB
TypeScript

import { ElementLocator } from '../drivers/types';
export const FAN_LOCATORS: Record<string, ElementLocator> = {
powerButton: {
name: 'Power button',
ios: { using: 'name', value: 'Power' },
android: { using: 'text', value: 'Power' },
},
modeButton: {
name: 'Mode button',
ios: { using: 'name', value: 'Mode' },
android: { using: 'text', value: 'Mode' },
},
speedUpButton: {
name: 'Speed Up button',
ios: { using: 'name', value: 'Speed Up' },
android: { using: 'text', value: 'Speed Up' },
},
speedDownButton: {
name: 'Speed Down button',
ios: { using: 'name', value: 'Speed Down' },
android: { using: 'text', value: 'Speed Down' },
},
nightLightButton: {
name: 'Night Light button',
ios: { using: 'name', value: 'Night Light' },
android: { using: 'text', value: 'Night Light' },
},
nightLightBrightnessSlider: {
name: 'Night Light Brightness slider',
ios: { using: 'name', value: 'Night Light Brightness' },
android: { using: 'text', value: 'Night Light Brightness' },
},
horizontalSwingSwitch: {
name: 'Horizontal Swing switch',
ios: { using: 'name', value: 'Horizontal Swing' },
android: { using: 'text', value: 'Horizontal Swing' },
},
verticalSwingSwitch: {
name: 'Vertical Swing switch',
ios: { using: 'name', value: 'Vertical Swing' },
android: { using: 'text', value: 'Vertical Swing' },
},
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' },
},
};