Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Simplification of wait behaviour based on unobtainium-multifind

License

Notifications You must be signed in to change notification settings

jfinkhaeuser/unobtainium-multiwait

Repository files navigation

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

About

Simplification of wait behaviour based on unobtainium-multifind

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published