Selenium Python Tutorial #14 - How to Find Element By ID or Name

preview_player
Показать описание
In this Selenium Python Tutorial, we will learn how to find element by ID or Name. There are various strategies to locate web elements in any web page that you are trying to automate. You can use find element by ID when you know the ID attribute of the webelement.

You can also use find element by name if you know the NAME attribute of webelement.

With find by ID or Name strategy, the first element with a matching ID or NAME attribute will be returned. If no element has a matching ID or NAME attribute, a NoSuchElementException will be raised.

Help me in spreading the knowledge, please hit LIKE, SHARE, and SUBSCRIBE for the latest tutorials. More tutorial playlists below:

🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶

🔶 FOLLOW US ON TWITTER 🔶

🔶 LIKE US ON FACEBOOK 🔶

🔶 OUR TUTORIAL WEBSITES 🔶

🔶 GET MY TRAININGS ON UDEMY 🔶

#SeleniumPythonTutorial #PythonSelenium #SeleniumPython #PythonSeleniumTutorial #SeleniumWebdriver #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

if you see the object/instance that is created of the demo class. it is marked by a warning. If you hover over it, then it tells you to add spaced lines for the function and object created to work properly. remember to clear the warning to make your code cleaner and efficient.

timecontinuumkerkar
Автор

help me with this error as only website opens and send keys are not working


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

anshchopra
Автор

Hello,

Suddenly webdriver_manager stopped working and posted an error, no webdriver_manager no such module ChromeDriverManager. How to get rid of it. Please help me.
I uninstalled python and pycharm entirely and reinstalled but they were no use.

undefined
Автор

Locating element syntax has been changed please refer to new locators

hardeepsingh-ordz
Автор

send_keys function was not working sir then what should i do ?

mounimouni
Автор

Please, subtitles option does not appear. Transcription does not work. Thanks Manish

fulldog
Автор

i try to automate a page that dynamicaly changes id to the buttons every time i log in and sometimes it has captcha .
can you make a video to show a way to avoid these situations?

johnmantzanis
Автор

On this case i am getting the Attribute error as
AttributeError: 'NoneType' object has no attribute 'send_keys'

Can you please guide me for this. I refered other classes as well for resolving this but i am not able to resolve

sudharshanharan
Автор

Hii,
I am getting only two options:
1. find_element(self, by, value)
2.find_elements(self, by, value)


Please help me with that

abhishekranjan
Автор

I was working on your solution and I found that new version of selenium getting the error for find_element_by_id method that no attribute. I have read the documentation and found the new method find_element. if any one have solution and questions for above method how to used please let me know.

manavshah
Автор

please tell alternaive of kite? my code is showing this error (AttributeError: 'NoneType' object has no attribute 'send_keys')

MaheshKumarChelladurai
Автор

Hi sir I am facing one issue i am getting error attribute error web driver object has no attribute find element by xpath pr id or name

vijaypratap
Автор

on the web page id of element always must be unique

bogart
Автор



AttributeError: 'NoneType' object has no attribute 'send_keys'

infinity