gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
AttributeError: 'WebDriver' object has no attribute 'find_els'
- User
AttributeError: 'WebDriver' object has no attribute 'find_els'
- Assistant
This error occurs because
find_elsis not a valid method in theWebDriverclass. The correct method to use isfind_elements.For example, to find all the elements with a specific class name, you can use:
pythonelements = driver.find_elements_by_class_name("classname")Make sure to replace "classname" with the actual class name you're searching for.