AppQuery.Child 方法

定义

重载

Child(Int32)

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

Child(String)

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

Child(Int32)

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

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

参数

index
Int32

要返回的子级的从零开始的索引。

返回

AppQuery

适用于

Child(String)

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

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

参数

className
String

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

返回

AppQuery

适用于