AppQuery.Descendant 方法

定义

重载

Descendant(Int32)

更改查询以返回当前匹配元素的第 n 个后代元素。

Descendant(String)

更改查询以返回当前匹配元素的后代元素。

Descendant(Int32)

更改查询以返回当前匹配元素的第 n 个后代元素。

public Xamarin.UITest.Queries.AppQuery Descendant (int index);
member this.Descendant : int -> Xamarin.UITest.Queries.AppQuery
Public Function Descendant (index As Integer) As AppQuery

参数

index
Int32

要返回的后代的从零开始的索引。

返回

AppQuery

适用于

Descendant(String)

更改查询以返回当前匹配元素的后代元素。

public Xamarin.UITest.Queries.AppQuery Descendant (string className = null);
member this.Descendant : string -> Xamarin.UITest.Queries.AppQuery
Public Function Descendant (Optional className As String = null) As AppQuery

参数

className
String

要匹配的元素的可选类名。

返回

AppQuery

适用于