Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AttributeError: 'WebDriver' object has no attribute 'find_elements_by_tag_name'

AttributeError: 'WebDriver' object has no attribute 'find_elements_by_tag_name' my code - github.com/eminsk/captcha

AttributeError: 'WebDriver' object has no attribute 'find_elements_by_tag_name'

like image 692
eminsk Avatar asked May 13 '26 21:05

eminsk


1 Answers

find_element_by_* and find_elements_by_* are now removed.

Refer:https://github.com/SeleniumHQ/selenium/blob/a4995e2c096239b42c373f26498a6c9bb4f2b3e7/py/CHANGES

Use this instead:

findElement(By.TAG_NAME,"HTML Tag Name")

On top, you will have to do an import:

from selenium.webdriver.common.by import By

Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!