Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Xpath Support in Edge browser

$
0
0

Hello Team,

We are facing an issue in Edge browser regarding xpath support.

My DOM element which I need to detect using xPath has 2 css classes applied to it.

<ul>

<li class="myClass1 myClass2"></li>

</ul>

If I mention only one class name in the xPath, it works in Edge browser e.g.

".//*[contains(@class,'myClass1')]"

but if I mention both class names (space separated) it doesn't work e.g

".//*[contains(@class,'myClass1 myClass2')]"

although it works well in all other browsers.

Please refer following fiddle link to replicate

https://jsfiddle.net/6L7z66bx/4/


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>