Repository is archived
No commit activity in last 3 years
No release in over 3 years
This gem provides a driver module for unobtainium allowing for more easily finding (one of) multiple elements. It requires a driver implementing the Selenium API, specifically the #find_element method.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 11.3
~> 3.7
~> 0.16
>= 0.9.12, ~> 0.9

Runtime

 Project Readme

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