Skip to content

Instantly share code, notes, and snippets.

@mark0203
Created April 12, 2018 13:40
lapis_lazuli and Edge browser - example of element filter_by usage
# First find a higher element that is visible
form = browser.find(:like => [:div, :class, 'form'], filter_by: :visible?)
# Then find the actual needed element by looking for any existing
elm = browser.find(like: [:div, :class, 'signin'], context: form, filter_by: :exists?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment