示例#1
0
 public SeleniumAppTypedSelector(IAppQuery parent)
 {
     _parent = parent;
 }
示例#2
0
 public SeleniumAppTypedSelector(IAppQuery parent, Type selectorValueType, IEnumerable <AppTypedSelectorMethodInvocation> invocations)
 {
     _parent            = parent;
     _selectorValueType = selectorValueType;
     _invocations.AddRange(invocations);
 }
示例#3
0
 /// <summary>
 /// Invokes a method on the object returned by the query, using the <see cref="IAppQuery.Invoke(string, object)"/> method.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="query"></param>
 /// <param name="methodName"></param>
 /// <param name="arg1"></param>
 /// <returns></returns>
 public static IAppTypedSelector <object> InvokeGeneric(this IAppQuery query, string methodName, object arg1)
 => query.Invoke(FormatBackdoorMethodName(methodName), arg1);
示例#4
0
 public static IAppTypedSelector <object> SetDependencyPropertyValue(this IAppQuery query, string dependencyPropertyName, string value) => query
 .Invoke(FormatBackdoorMethodName(
             "browser:Uno.UI.WindowManager.current|SetDependencyPropertyValue"),
         dependencyPropertyName + "|" + value);
示例#5
0
 public static IAppQuery XamlParent(this IAppQuery query, string controlName)
 {
     return(query.Parent(PlatformHelpers.On(iOS: () => controlName.Replace(".", "_"), Android: () => GetAndroidName(controlName))));
 }
 public static AppQuery ToXamarinQuery(this IAppQuery q)
 => q is XamarinAppQuery xq ? xq.SourceQuery : throw new InvalidOperationException();
示例#7
0
 public FreelanceList(IAppQuery <TEntity> providerList)
 {
     ProviderList = providerList;
 }