sandy1028 Posted August 25, 2015 Share Posted August 25, 2015 <script async="" src="http://www.mar.com/network/abc.js" type="text/javascript"/> <script src="http://www.mar.com/network/abc.js"/> can you please tell me the XPATH where it matches the script which has async and not the other one. I tried with the below script, but it matches both. //script[contains(@src, 'mar.com') and contains(@src, 'abc.js') and contains(@async, '')] Quote Link to comment https://forums.phpfreaks.com/topic/297924-xpath-help/ Share on other sites More sharing options...
requinix Posted August 25, 2015 Share Posted August 25, 2015 I would think a simple '//script[@src="http://www.mar.com/network/abc.js"][@async]'should work fine. Quote Link to comment https://forums.phpfreaks.com/topic/297924-xpath-help/#findComment-1519627 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.