خدمة روبونت
wdio-robonut-service هي حزمة من طرف ثالث، لمزيد من المعلومات يرجى الاطلاع على GitHub | npm
الوصف
wdio-robonut-service هي خدمة متعددة المنصات (ويندوز، داروين، لينكس) مع إمكانية الوصول إلى ماوس النظام، لوحة المفاتيح، الحافظة، الشاشة والبحث عن قوالب الصور على الشاشة المرئية باستخدام nutjs تحت الغطاء. مع هذه الخدمة يمكن تنفيذ حركة النظام، النقر، النسخ، اللصق، الكتابة وما إلى ذلك. من الممكن التحقق من وجود والحصول على إحداثيات قالب الصورة، السحب والإفلات وما إلى ذلك.
التثبيت
npm install wdio-robonut-service
الإعدادات
interface RobotConfig {
mouseConfig?: { autoDelayMs: number; mouseSpeed: number };
screenConfig?: { confidence: number; autoHighlight: boolean; highlightDurationMs: number; highlightOpacity: number; resourceDirectory: string };
keyboardConfig?: { autoDelayMs: number };
imageFinder?: {
confidence?: number;
providerData?: {
methodType?: MethodNameType;
scaleSteps?: Array<number>;
searchMultipleScales?: boolean;
isRotation: boolean,
rotationOption?: { range?: number; overLap?: number; minDstLength?: number };
debug?: boolean;
roi?: Region;
};
};
}
كخدمة wdio في wdio.conf.ts
import RobotService from 'wdio-robonut-service';
const robotConfig: RobotConfig = {};
export const config: Options.Testrunner = {
//-
services: [[RobotService, robotConfig]],
//-
}