**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.
Hi sir, i need to how to replace a text in xpath in python automation ex : //input[@role="link"]//span[text()="Expand"].. so i need to replace with Collapse can please help to do that.
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?
**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.
Very good lecture. Thank you sir.
Nice sir keep continue
Thanks. Keep watching!
where you have explain roobotic frame work setup. I am not able to perform this
Hi sir,
i need to how to replace a text in xpath in python automation
ex : //input[@role="link"]//span[text()="Expand"].. so i need to replace with Collapse
can please help to do that.
I have situation . When i doing same like you but in Eclipse , results is nothing code is correctly entered.
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?
Where can I find robot framework to install
sir, how did you generate the report
Sir I am unable to find xpath.when I was writing the syntax for xpath 0 of 0 is selected.plz help me
thanks
nice video
thanks bro
Sir, how to find out an element which appears on a modal?
Sir, Can we use index in the text method
❤️
//tagname[text()='your text']