title: how to use contains in web elements using java selenium webdriver?
body: <p>I have a string which has is like ABC £12,56 and I have another box "Cashbox" which should be 15% of this value which I have to assert. Now, when I am trying to find css of both these web elements "Cashbox", I can easily find for but for ABC £12,56 I am not able to get it only for the value , its the entire string which is getting selected.  Now I am thinking of using an if statement  with contains. This is just a sneak peak of what I am doing, there could be many mistakes in the following code. Appreciate if someone can help me learn and tell how to do it</p>
  
  <p><a href="https://i.stack.imgur.com/nW4iX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nW4iX.png" alt="enter image description here"></a></p>