Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望能同时判断多个组件中任一一个是否存在 #965

Closed
Creat55 opened this issue May 1, 2024 · 1 comment
Closed

希望能同时判断多个组件中任一一个是否存在 #965

Creat55 opened this issue May 1, 2024 · 1 comment

Comments

@Creat55
Copy link

Creat55 commented May 1, 2024

希望实现的功能是同时检查多个组件中是否至少存在一个,这个检查过程需要支持传入一个list以提高效率。具体来说,就是想要一个方法能够像 .exists 或 .wait() 那样,不仅能判断单个组件的存在性,还能并发地判断多个组件中任何一个的是否存在。

@codeskyblue
Copy link
Member

3.1后面的版本开始支持。

可以这样写

sel = d.xpath("App") | d.xpath("NFC")
print(sel.exists)
sel.click()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants