活动
最新
False
横幅背景图像
用户界面自动化活动
上次更新日期 2024年4月26日

ElementExists

返回一个布尔值变量,用于声明指定的用户界面元素是否存在。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

重载

重载描述
ElementExists(IElementDescriptor, MobileOptions.ElementExistsOptions)返回一个布尔值变量,该变量声明对象存储库元素 ( IElementDescriptor ) 是否存在。
ElementExists(ObjectRepositoryTarget, MobileOptions.ElementExistsOptions)返回一个布尔值变量,该变量声明对象存储库目标 ( ObjectRepositoryTarget ) 是否存在。
ElementExists(SelectorTarget, MobileOptions.ElementExistsOptions)返回一个布尔值变量,该变量声明是否存在原生选取器 ( SelectorTarget )。

ElementExists(IElementDescriptor, MobileOptions.ElementExistsOptions)

返回一个布尔值变量,该变量声明对象存储库元素 ( IElementDescriptor ) 是否存在。
ElementExists(
	    IElementDescriptor element,
	    MobileOptions. ElementExistsOptions options = null
)ElementExists(
	    IElementDescriptor element,
	    MobileOptions. ElementExistsOptions options = null
)
element
使用ObjectRepository.Descriptors类访问的对象存储库中的用户界面元素。

请访问将编码自动化中的对象与移动自动化结合使用,了解如何将对象存储库元素与移动自动化结合使用。

options MobileOptions.ElementExistsOptions
ElementExistsOptions操作指定MobileOptions.ElementExistsOptions 。 默认值为 null。

ElementExists(ObjectRepositoryTarget, MobileOptions.ElementExistsOptions)

返回一个布尔值变量,该变量声明对象存储库目标 ( ObjectRepositoryTarget ) 是否存在。
ElementExists(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. ElementExistsOptions options = null
)ElementExists(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. ElementExistsOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
ObjectRepositoryTarget类型的对象。
options MobileOptions.ElementExistsOptions
ElementExistsOptions操作指定MobileOptions.ElementExistsOptions 。 默认值为 null。

ElementExists(SelectorTarget, MobileOptions.ElementExistsOptions)

返回一个布尔值变量,该变量声明是否存在原生选取器 ( SelectorTarget )。
ElementExists(
	    SelectorTarget targetSelector,
	    MobileOptions. ElementExistsOptions options = null
)ElementExists(
	    SelectorTarget targetSelector,
	    MobileOptions. ElementExistsOptions options = null
)
targetSelector SelectorTarget
SelectorTarget类型的对象。 可以使用FromSelector(String)方法构建。
options MobileOptions.ElementExistsOptions
ElementExistsOptions操作指定MobileOptions.ElementExistsOptions 。 默认值为 null。

返回值

True 如果元素存在,则False如果元素不存在。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.