Created
July 9, 2025 11:53
-
-
Save myabc/3501ca6938381d1cc9f99afe505ec726 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CapybaraAccessibleSelectors::DriverNodeExtensions.class_eval do | |
def accessible_name | |
result = browser.page.command("Accessibility.queryAXTree", nodeId: node.node_id) | |
first_node = result["nodes"]&.first { it["ignored"] == false } | |
first_node&.dig("name", "value") || "" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment