Hi all,
I cannot remember how to loop through an xpath to get the data:
eg:
First XPath
//*[@id="main"]/div[1]/div[1]/div[1]/ul/li[1]/div[1]/div[1]/div[7]/div [1]/div[1]/div[1]/span[1]/span[1]/a/span[1]/span[1]
Second Xpath
//*[@id="main"]/div[1]/div[1]/div[1]/ul/li[2]/div[1]/div[1]/div[7]/div [1]/div[1]/div[1]/span[1]/span[1]/a/span[1]/span[1]
As you can see the /li[n] is different on each line.
I know for example that each page will have 10 of them, how can I go from:
//*[@id="main"]/div[1]/div[1]/div[1]/ul/ li[1 ]/div[1]/div[1]/div[7]/div [1]/div[1]/div[1]/span[1]/span[1]/a/span[1]/span[1]
to
//*[@id="main"]/div[1]/div[1]/div[1]/ul/ li[10] /div[1]/div[1]/div[7]/div [1]/div[1]/div[1]/span[1]/span[1]/a/span[1]/span[1]
With a block (And which block to use please.
I am using the latest version that has just been released. 7.0.2 I think.
Thanks!
I cannot remember how to loop through an xpath to get the data:
eg:
First XPath
//*[@id="main"]/div[1]/div[1]/div[1]/ul/li[1]/div[1]/div[1]/div[7]/div [1]/div[1]/div[1]/span[1]/span[1]/a/span[1]/span[1]
Second Xpath
//*[@id="main"]/div[1]/div[1]/div[1]/ul/li[2]/div[1]/div[1]/div[7]/div [1]/div[1]/div[1]/span[1]/span[1]/a/span[1]/span[1]
As you can see the /li[n] is different on each line.
I know for example that each page will have 10 of them, how can I go from:
//*[@id="main"]/div[1]/div[1]/div[1]/ul/ li[1 ]/div[1]/div[1]/div[7]/div [1]/div[1]/div[1]/span[1]/span[1]/a/span[1]/span[1]
to
//*[@id="main"]/div[1]/div[1]/div[1]/ul/ li[10] /div[1]/div[1]/div[7]/div [1]/div[1]/div[1]/span[1]/span[1]/a/span[1]/span[1]
With a block (And which block to use please.
I am using the latest version that has just been released. 7.0.2 I think.
Thanks!