javascript how to document.evaluate() with @contains one value and not
@contains 2nd value
I need to use evaluate() to get containing "images/" in src and at the
same time not containing window.location.hostname in the src, I know
evaluate supports "and" & "or" operators, but "not" does not seem to be
supported, how can this be done?
'.//img[contains(@src,"images/") and not
contains(@src,window.location.hostname)]'
No comments:
Post a Comment