root
root

Reputation: 80346

XPath: using or

I need to find elements on a dynamic website that contain either test.gif or test2.gif. Tt my be that one of those is not present. Whats the correct synax to do it? My take with:

'.//*[@src="http://test/test1.gif"] or .//*[@src="http://test/test2.gif"]'

doesn't seem to work.

Upvotes: 0

Views: 97

Answers (1)

Marco L.
Marco L.

Reputation: 1499

have you tried with:

@src="http://test/test1.gif" or @src="http://test/test2.gif"

Upvotes: 1

Related Questions