First answer:
/html/body/div[3]/div/div[3]/div/div/div/div/div/div/div/div/div/div/h1/a
Your XPATH disconnected one in the predicate filter for the 4th div body, it should be the third div . It looks like the HTML for the site may / may change when you initially infected XPATH with Firebug. You may need to configure XPATH to accommodate possible changes and be less sensitive to some differences in document structure.
Maybe something like this:
/html/body
Second answer: the XPATH you specified will work. It may look odd / short (and may not be the most efficient), but // starts at the root of the node and is looked at in every node in the tree, * matches any element (to include img ), and the predicate filter [] limits those for which there is an id attribute whose value is "gmi-ResViewSizer_img".
There are many other XPATH options that may work. This will also depend on how often the HTML structure changes. This is the one that also works for the linked page to select img :
/html/body/div/div/div/div/img[1]
source share