0

I'm an Xpath newbie and now I want to know how to locate the following element in the following html.

Element:

href="/Kategorien/Installation/c/HGEHK0010"

Sorry for that image, I don´t know how to copy it directly from the HTML-page.

Html:

Sorry for that image, I don´t know how to copy it directly from the HTML-page

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352

1 Answers1

0

You can use either of the following based Locator Strategies:

  • Using the <span> tag:

    //span[text()='Installation']
    
  • Using the parent <a> and child <span> tags:

    //a[starts-with(@href, '/Kategorien/Installation/c') and ]//span[text()='Installation']
    
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352