这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@mykola-mokhnach
Copy link

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg overall

shouldReturnAfterFirstMatch:YES];
if (matches.count > 0) {
[[matches objectAtIndex:0] tap];
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a strong opinion but would it be helpful to leave log if the element has over 2? So something like <given selector> matches over two elements. clicking the first one for future investigation

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to keep the current behaviour for now as multiple elements matching might be less performant than single element match, and I prefer performance in this scenario

@mykola-mokhnach mykola-mokhnach merged commit fd31b95 into master Apr 10, 2025
45 of 47 checks passed
@mykola-mokhnach mykola-mokhnach deleted the click_alert branch April 10, 2025 06:04
github-actions bot pushed a commit that referenced this pull request Apr 10, 2025
## [9.5.0](v9.4.1...v9.5.0) (2025-04-10)

### Features

* Add support for the autoClickAlertSelector setting ([#1002](#1002)) ([fd31b95](fd31b95))
@github-actions
Copy link

🎉 This PR is included in version 9.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants