Share via


AppQuery.Id Method

Definition

Overloads

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.

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.

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.

Returns

Applies to