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

java - Cast from Object to List<String>: CastClassException -

How to set a border for android Imageview in Longpress? -

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