- If
git
is installed:git clone git@github.com:wizenoze/xpath_challenge.git
- If not, click here to download a
.zip
file with repository's content.
Open easy.html
.
It's a pretty simple html page which follows the Open Graph protocol.
Which XPath
expression can we use to extract Open Graph title
?
Open hard.html
.
We want to extract the same property as in easy.html
but it doesn't exist.
In this case (if opengraph title doesn't exist), extracted text should be just Doe
.
Validation: XPath expression for Part 1 should return: John
and the same expression should return Doe
for Part 2.