Kevin.a
Kevin.a

Reputation: 4286

Filter out div child element in xpath

I have the following xpath expression :

//div[@class='a-section a-spacing-none a-spacing-top-small']

This selection contains <div class= "a-row a-spacing-micro"> i want to do a not contains on this class a-row a-spacing-micro

Upvotes: 0

Views: 62

Answers (1)

Jack Fleeting
Jack Fleeting

Reputation: 24930

Try this on your html and see if it works:

//div[not(@class='a-section a-spacing-none a-spacing-top-small')]

Upvotes: 1

Related Questions