Home > Back-end >  xpath find by part of class value
xpath find by part of class value

Time:11-06

I wanna know is it possible to find element using xpath for part of class name value? I mean sometimes one element have many classes like below:

<p >bla bla bla</p>

and i want to find element by one of this class.

So tag p relate to two classes:

  1. SnippetBodyStyles__MainInfo-sc-1asbgpf-4
  2. fBmSdW

Is it possible to find p tag using this xpath like enter image description here

  • Related