IApp.Query Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Query(Func<AppQuery,AppQuery>) |
Queries view objects using the fluent API. Defaults to only return view objects that are visible. |
Query(Func<AppQuery,AppWebQuery>) |
Queries web view objects using the fluent API. Defaults to only return view objects that are visible. |
Query(Func<AppQuery,InvokeJSAppQuery>) |
Invokes Javascript on view objects using the fluent API. |
Query(String) |
Queries view objects using the fluent API. Defaults to only return view objects that are visible. |
Query<T>(Func<AppQuery,AppTypedSelector<T>>) |
Queries properties on view objects using the fluent API. |
Query(Func<AppQuery,AppQuery>)
Queries view objects using the fluent API. Defaults to only return view objects that are visible.
public Xamarin.UITest.Queries.AppResult[] Query (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> query = null);
abstract member Query : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> -> Xamarin.UITest.Queries.AppResult[]
Public Function Query (Optional query As Func(Of AppQuery, AppQuery) = null) As AppResult()
Parameters
Entry point for the fluent API to specify the element. If left as null
returns all visible view
objects.
Returns
An array representing the matched view objects.
Applies to
Query(Func<AppQuery,AppWebQuery>)
Queries web view objects using the fluent API. Defaults to only return view objects that are visible.
public Xamarin.UITest.Queries.AppWebResult[] Query (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppWebQuery> query);
abstract member Query : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery> -> Xamarin.UITest.Queries.AppWebResult[]
Public Function Query (query As Func(Of AppQuery, AppWebQuery)) As AppWebResult()
Parameters
- query
- Func<AppQuery,AppWebQuery>
Entry point for the fluent API to specify the element. If left as null
returns all visible view
objects.
Returns
An array representing the matched view objects.
Applies to
Query(Func<AppQuery,InvokeJSAppQuery>)
Invokes Javascript on view objects using the fluent API.
public string[] Query (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.InvokeJSAppQuery> query);
abstract member Query : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.InvokeJSAppQuery> -> string[]
Public Function Query (query As Func(Of AppQuery, InvokeJSAppQuery)) As String()
Parameters
- query
- Func<AppQuery,InvokeJSAppQuery>
Entry point for the fluent API to specify the elements.
Returns
An array of strings representing the results.
Applies to
Query(String)
Queries view objects using the fluent API. Defaults to only return view objects that are visible.
public Xamarin.UITest.Queries.AppResult[] Query (string marked);
abstract member Query : string -> Xamarin.UITest.Queries.AppResult[]
Public Function Query (marked As String) As AppResult()
Parameters
- marked
- String
Marked selector to match. See Marked(String) for more information.
Returns
An array representing the matched view objects.
Applies to
Query<T>(Func<AppQuery,AppTypedSelector<T>>)
Queries properties on view objects using the fluent API.
public T[] Query<T> (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppTypedSelector<T>> query);
abstract member Query : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppTypedSelector<'T>> -> 'T[]
Public Function Query(Of T) (query As Func(Of AppQuery, AppTypedSelector(Of T))) As T()
Type Parameters
- T
The type of the property.
Parameters
- query
- Func<AppQuery,AppTypedSelector<T>>
Entry point for the fluent API to specify the type of the property.