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:
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:
You can use either of the following xpath 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']