AppQuery.Id 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
Id(Int32) |
Matches element id.
For Android: An element with the given value as |
Id(String) |
Matches element id.
For Android: An element with the given value as |
Id(Int32)
Matches element id.
For Android: An element with the given value as id
. Allows properties of
an Android App project's Resource.Id
to be used in Id()
queries.
For iOS: An element with the string version of the given value as
accessibilityIdentifier
.
public Xamarin.UITest.Queries.AppQuery Id (int id);
member this.Id : int -> Xamarin.UITest.Queries.AppQuery
Public Function Id (id As Integer) As AppQuery
Parameters
- id
- Int32
The value to match.
Returns
Applies to
Id(String)
Matches element id.
For Android: An element with the given value as id
.
For iOS: An element with the given value as accessibilityIdentifier
.
public Xamarin.UITest.Queries.AppQuery Id (string id);
member this.Id : string -> Xamarin.UITest.Queries.AppQuery
Public Function Id (id As String) As AppQuery
Parameters
- id
- String
The value to match.