PropertyAppQuery 类

定义

用于指定属性的视图元素谓词的 Fluent 查询 API。

public class PropertyAppQuery : Xamarin.UITest.Utils.IFluentInterface
type PropertyAppQuery = class
    interface IFluentInterface
Public Class PropertyAppQuery
Implements IFluentInterface
继承
PropertyAppQuery
实现

构造函数

PropertyAppQuery(QueryPlatform, AppQuery, String)

属性查询的初始构造函数。 不应直接调用,而是在应用类中用作 Fluent API 的一部分。

属性

QueryPlatform

查询的目标平台。 为平台差异的查询编写扩展方法时很有用。

方法

Contains(String)

匹配包含给定文本的属性。

EndsWith(String)

匹配以给定文本结尾的属性。

Like(String)

匹配给定文本等属性。 支持 * 通配符。

Predicate(String, String)

匹配与给定谓词和文本匹配的属性。 允许使用未公开的 Calabash 谓词。

StartsWith(String)

匹配从给定文本开始的属性。

Value<T>()

提取 属性的值。

显式接口实现

IFluentInterface.GetType()

用于指定属性的视图元素谓词的 Fluent 查询 API。

适用于