How To Combine Different XPath

Posted by Agung Pambudi in , ,
//DIV[@class='1'] | //DIV[@class='2']

the XPath combines two routes to get the <DIV> block , the difference is the class name for them.

It's better you can use an alternative xpath selection be mixed in the 'fits' element for getting the inner text.

//DIV[@id='tab-compatible-with'] | //DIV[@id='collapse-tab-compatible-with']/DIV[1]

No comments:

Post a Comment