Method storeAttribute
works perfectly when I need to get an attribute like href
:
xpath=(//span[@class='active'])@href
But how should I use it to get the whole element (span
in this example)? I mean the whole html source text of the element.
Method storeAttribute
works perfectly when I need to get an attribute like href
:
xpath=(//span[@class='active'])@href
But how should I use it to get the whole element (span
in this example)? I mean the whole html source text of the element.
You can do this just with the storeText command.
So your target would be just:
xpath=(//span[@class='active'])
Set Command
to storeText
and set Value
to the name of the desired variable
.