Last active
January 4, 2022 09:10
-
-
Save flynnbops/d829eb6360e72adcaf91b34be0ef845b to your computer and use it in GitHub Desktop.
Capybara attributes
This file contains 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
# HTML Code Snippet of the icon | |
<td id="toggleAppDetails0" class="tableSpacing" headers="viewDetails"> | |
<a href="#" data-ref="123ABC" data-expand="appDetails0" title="Show / hide details"> + </a> | |
</td> |
This file contains 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
# Capybara snippet to get the value of the reference | |
my_precious_reference = find_by_id("toggleAppDetails0")['data-ref'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment