xpath (Python lxml): OR for element tag -
i have following xpath:
"//div[@id='instructions']//ol[@id='inst']" however, have ol tag can either ol or ul.
not sure how that.
you can use following match both ul ol:
//div[@id='instructions']//ol[@id='inst'] | //div[@id='instructions']//ul[@id='inst']
Comments
Post a Comment