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 waiting for (one of) multiple elements to change state. It is based on the unobtainium-multifind gem.
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-multiwait

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-multiwait'

include Unobtainium::World

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

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

# Entries will be nil if nothing is found by these xpaths before the
# timeout expires.
puts elems.length # => 2