createCommand static method
Implementation
static Command? createCommand(String methodName) {
switch (methodName) {
case "ReplayClickMethod":
return ReplayClickCommand();
case "ReplayTouchMethod":
return ReplayTouchCommand();
case "ReplaySwipeMethod":
return ReplaySwipeCommand();
case "GetFullHierarchyMethod":
return GetFullHierarchyCommand();
case "GetScreenshotMethod":
return GetScreenshotCommand();
case "GetPropertiesMethod":
return GetPropertiesCommand();
case "ReplayKeySequenceMethod":
return ReplayKeySequenceCommand();
case "ReplaySetValueMethod":
return ReplaySetValueMethod();
default:
return null;
}
}