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

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -