/// <summary> /// 虚拟按键:: 0-9 /// </summary> /// <param name="number"> 0-9 的数字 </param> public AndroidEntityWidget VirtualButtonsNumber(int number) { return(AndroidPuppeteer.Widget(new ElementStructure { By = "id", El = $"com.android.calculator2:id/digit_{number}", PageName = ModelName, WidgetName = $"虚拟按键.{number}", })); }
/// <summary> /// 数字键:: 0-9 /// </summary> /// <param name="number"> 0-9 的数字 </param> public AndroidEntityWidget NumericKeys(int number) { return(AndroidPuppeteer.Widget(new ElementStructure { By = "xpath", El = $"//*[@text='{number}']", PageName = ModelName, WidgetName = $"数字键.{number}", })); }