undefined

Q: How Do I Add Relative Xpath With Customization in Octoparse?

Solutions are available for a related question here. Go to have a check now!

 

Description:

I found that the relative XPath is available only in Wizard Mode when I use Wizard Mode - List/Table and Advanced Mode - List/Table in Octoparse.

 

This pic is from Wizard Mode for List/Table (Note relative Xpath is available)

This pic is from Advanced Mode for List/Table (Note relative Xpath is NOT available)

 

When will the relative XPath be available in Octoparse? And how can I add the relative XPath to the Customize Current Action panel?

 

 

A:

 

The Loop Mode for Wizard Mode(List/Table) is the Variable List mode. That’s why the relative XPath appears when you want to modify XPath for data fields.

In most cases, Octoparse V6.2 will extract web elements by an absolute XPath when you create a loop for your task using Advanced Mode. But when you choose the Variable List mode for your loop, Octoparse V6.2 will generate a relative XPath to better position the web elements inside the loop items.

Thus, if and only if you choose the Variable List mode for the loop will the relative XPath appears when you need to modify the XPath in the customization of data fields, either for Wizard Mode(List/Table) or Advanced Mode.

Check out this tutorial to manually modify XPath in Octoparse: Modify Xpath Manuyally in Octoparse

 

Nous utilisons des cookies pour améliorer votre expérience de navigation. Découvrez comment nous utilisons les cookies et comment vous pouvez les contrôler en cliquant sur les paramètres des cookies. Si vous continuez à utiliser ce site, vous consentez à notre utilisation des cookies.
Accepter Rejeter