spyoungtech / behave-webdriver

Selenium webdriver step library for use with the behave BDD testing framework
MIT License
62 stars 21 forks source link

support for find_elements #84

Closed kevin-pelago closed 4 years ago

kevin-pelago commented 4 years ago

Hi,

Does the current version of the project supports finding multiple elements at once and returning it as a list or array of web elements?

I found this Select class (https://github.com/spyoungtech/behave-webdriver/blob/master/behave_webdriver/driver.py#L26-L38) and thought it might be the implementation but I can't get it to work. Kindly give example implementation if indeed this is the support for finding multiple elements.

kevin-pelago commented 4 years ago

was able to find multiple web elements via css selector by just doing:

context.behave_driver.find_elements(By.CSS_SELECTOR, "css_selector_here")