Selenium XPath Tutorial #5 - XPath text() Method | Find element by Text

preview_player
Показать описание
In this Selenium XPath tutorial we will learn about XPath text() method and how to utilize text() method to find any webelement by text.

Help me in spreading the knowledge, please hit LIKE, SHARE and SUBSCRIBE for 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 🔶
#XPathTutorial #XPath #SeleniumXPath #SeleniumTutorial #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor
Рекомендации по теме
Комментарии
Автор

**Understanding the "text()" Method in XPath - Notes:**

- Introduction:
- "text()" method locates elements with exact text match on the webpage.

- Scenario:
- Some web elements have specific text defined.
- Use "text()" method to locate elements based on their exact text content.

- Format of "text()" Method:
- Use double forward slash for relative XPath, followed by the tag name of the element.
- Within square brackets, use "text()" method and provide the exact text in single quotes.
- XPath example: "//a[text()='Terms of Use']".

- Conclusion:
- The "text()" method in XPath is used to locate elements based on exact text content.
- It provides a powerful way to interact with specific web elements.
- The same XPath can be used across different frameworks for consistency and efficiency.

manoj_mafiosi
Автор

where you have explain roobotic frame work setup. I am not able to perform this

jhadinkar
Автор

I have situation . When i doing same like you but in Eclipse, results is nothing code is correctly entered.

emanoelpetrov
Автор

I've a question, like I search "Wikipedia" on Google/Bing and now I want to get all the links that contains "Wikipedia", but this text() method is only finding those elements which has specific text "Wikipedia", how do I do that?

Base-uw
Автор

Where can I find robot framework to install

PramodKolekar-iz
Автор

Hi sir,
i need to how to replace a text in xpath in python automation
can please help to do that.

InspirewithButterfly
Автор

Sir I am unable to find xpath.when I was writing the syntax for xpath 0 of 0 is selected.plz help me

debasmitamishra
Автор

Sir, how to find out an element which appears on a modal?

freddiekhambata
Автор

Sir, Can we use index in the text method

dineshkumar
Автор

//tagname[text()='your text']

upup