Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ssaadh/6206758 to your computer and use it in GitHub Desktop.
Save ssaadh/6206758 to your computer and use it in GitHub Desktop.
target_parent = browser.divs( class: 'card' ).find { |div| div.div( class: 'title', text: 'AAAA' ).exists? }
target_element = target_parent.div( class: 'title', text: 'AAAA' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment