Created
April 12, 2018 13:40
lapis_lazuli and Edge browser - example of element filter_by usage
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
# 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