How To Create Mixed XPath

You can use the mixed xpath as below:

//DIV[@class='centerCol_500 mL10']/DIV[@class='bucket']/DIV[startswith(@class, 'listing bbGray vcard')] |

//DIV[@class='bucket']/DIV[@class='listing bbGray attiListing']


Selecting list of items with different html/xpaths



It is possible to do that. However, the subsequence page should have the same layout. You will need to click "Set XPath Manually" button. Then, modify XPath by using | (or). e.g. //TR[@class='type1']/TD | //TR[@class='type2']/TD. You will also have to check "Create List" option in List tab.



Is it possible to concatenate multiple xpath extractions into one field

Example:
//*[@id="ctl00_ContentPlaceHolder1_lblProduct"]//h3

+

//*[@id="ctl00_ContentPlaceHolder1_lblProduct"]//ul



uses logic expression OR - | (pipe char)

//*[@id="ctl00_ContentPlaceHolder1_lblProduct"]//h3 | //*[@id="ctl00_ContentPlaceHolder1_lblProduct"]//ul


SHARE

About Agung Pambudi

I am a Blogger with passion in business.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment