How to select a range of targets

 

When select targets with "group select", FMiner will create XPath for all targets with similar positions. Maybe you just need some of them. For example, you select 100 targets, and XPath like this:

//div/div/a

but you just need top 20, you can change the XPath to this:

(//div/div/a)[position() <= 20]

It will just select the top 20 targets.  And if you just need middle part, you can change XPath like this:

(//div/div/a)[position()>10 and position() <= 20]

If you need last 5 targets, you can change XPath like this:

(//div/div/a)[position() > last() - 5 ]