Driver module for unobtainium for finding multiple elements via Selenium API
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
unobtainium-multifind.gemspec

README.md

unobtainium-multifind

This gem provides a driver module for unobtainium allowing for more easily finding (one of) multiple elements.

Gem Version Build status

To use it, require it after requiring unobtainium, then create the any driver with a Selenium API:

require 'unobtainium'
require 'unobtainium-multifind'

include Unobtainium::World

driver.navigate.to('http://finkhaeuser.de')

elems = driver.multifind({ xpath: '//some-element' },
                         { xpath: '//other-element' })

# Entries will be nil if nothing is found by this xpath
puts elems.length # => 2