AppQuery.Parent 方法

定义

重载

Parent(String)

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

Parent(Int32)

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

Parent(String)

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

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

参数

className
String

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

返回

AppQuery

适用于

Parent(Int32)

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

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

参数

index
Int32

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

返回

AppQuery

适用于