aisingapore / TagUI

Free RPA tool by AI Singapore
Apache License 2.0
5.67k stars 584 forks source link

present() vs exist()? - exist() will wait until timeout before returning false #1379

Closed supercena closed 3 months ago

supercena commented 5 months ago

difference between present() and exist()?

eienkisu commented 3 months ago

refer to https://tagui.readthedocs.io/en/latest/reference.html?highlight=present#present

present()

Same as exist() except that it does not wait until the timeout and immediately returns true or false. Note that the identifier is surrounded by quotes. Can use DOM, XPath, Image identifiers.

Examples

if present('//table') click button1