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

feat: add clickElemAt & hoverElemAt #542

Merged
merged 14 commits into from
Nov 15, 2024
Merged

Conversation

KearseTrevor
Copy link
Contributor

@KearseTrevor KearseTrevor commented Nov 13, 2024

Resolves #281

Alternative setup would be clickElemAt(elem, xOffset = 0, yOffset = 0) which likely brings it in line closer to how users expect things to work when coming from clickAt and hoverAt but I have it penciled in as clickElemAt(elem, offset = { x: 0, y: 0 }) right now just because it felt cleaner to me but it's a quick change.

Honestly on second thought, I'll likely just swap to using it as xOffset, yOffset since it makes more sense to follow pattern.

Just adding documentation and then it's ready for full review

@KearseTrevor KearseTrevor requested a review from a team as a code owner November 13, 2024 17:08
test/browser/commands.test.js Outdated Show resolved Hide resolved
src/browser/commands.js Show resolved Hide resolved
Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for the refactor of the tests!

@KearseTrevor KearseTrevor merged commit c2e2e00 into main Nov 15, 2024
3 checks passed
@KearseTrevor KearseTrevor deleted the feat/clickElemAt-hoverElemAt branch November 15, 2024 15:35
Copy link

🎉 This PR is included in version 1.26.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.

[Feature-Request] clickElemAt + hoverElemAt
2 participants