Skip to content

Fix py.find() method when timeout equals 0

Compare
Choose a tag to compare
@ElSnoMan ElSnoMan released this 24 May 04:28
· 63 commits to main since this release
a924edb

1.12.6 - 2021-05-23

Overview

Fix #196

This is a quick fix to find() method in driver.py, but no other functionality has changed.

py.find(timeout=0) was using

self.webdriver.find_element()

which only returns a single element. This is now fixed to use the appropriate find_elements() method instead.

So py.find() returns an Elements object (aka a list of elements) as expected! All is well in the world again 😄