Closed luey-punch closed 1 month ago
Duplicate of https://github.com/seleniumbase/SeleniumBase/discussions/2895#discussioncomment-9930193
WebElements use the original Selenium API, where the by
arg comes before the selector
.
Your call would be: element.find_elements("xpath", "//span")
I get an error saying invalid argument: invalid locator Adding the 'by' param returns WebElement.find_elements() got multiple values for argument 'by'
Even using
element.find_elements("//span","xpath")
still throws an error