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

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 18

  • @manoj_mafiosi
    @manoj_mafiosi Рік тому +4

    **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.

  • @okubaygebrelibanos8857
    @okubaygebrelibanos8857 2 роки тому

    Very good lecture. Thank you sir.

  • @danish6909
    @danish6909 4 роки тому +2

    Nice sir keep continue

  • @jhadinkar64
    @jhadinkar64 3 роки тому

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

  • @InspirewithButterfly
    @InspirewithButterfly 11 місяців тому

    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.

  • @emanoelpetrov1673
    @emanoelpetrov1673 3 роки тому

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

  • @Base-u9w
    @Base-u9w Рік тому

    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?

  • @PramodKolekar-i1z
    @PramodKolekar-i1z Рік тому

    Where can I find robot framework to install

  • @ritickgaurav
    @ritickgaurav 3 роки тому

    sir, how did you generate the report

  • @debasmitamishra9992
    @debasmitamishra9992 2 роки тому

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

  • @gutz1626
    @gutz1626 2 роки тому

    thanks

  • @studiesonsoftwaretesting9768
    @studiesonsoftwaretesting9768 3 роки тому

    nice video

  • @l33t_pb
    @l33t_pb 3 роки тому

    thanks bro

  • @freddiekhambata2506
    @freddiekhambata2506 4 роки тому

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

  • @1988dineshkumar
    @1988dineshkumar 4 роки тому

    Sir, Can we use index in the text method

  • @Mersal-sp7kw
    @Mersal-sp7kw 3 роки тому

    ❤️

  • @upup5133
    @upup5133 3 роки тому +1

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