looking for keywords that appear in a link or in a text.

Support
  • I am looking for keywords that appear in a link or in a text.

    I use BAS to load any web page.
    For example, abc.com.
    Then I will use the HTML Page to save the entire HTML of the current page.
    Next, I have a keyword, for example, 'abc xyz'.
    I want to find 2 targets:

    Find out if 'abc xyz' is present in the text.
    Find out if 'abc xyz' is present in any links, and if so, identify that link.
    Please guide me on how to do this

  • XPATH
    //body[contains(.,"abc xyz")]
    //a[contains(.,"abc xyz")]

  • Any text

    >XPATH> //*[text()[contains(.,"abc")]]
    

    Any links

    >XPATH> //*[contains(@href,"abc")]
    

  • Get all links on a website

    Support
    0 Votes
    47 Posts
    4805 Views
  • How to get a link address

    Support
    0 Votes
    2 Posts
    604 Views
  • 0 Votes
    5 Posts
    1217 Views
  • 0 Votes
    4 Posts
    905 Views
  • CSS>Element-id>Match>text

    Support
    0 Votes
    2 Posts
    963 Views