title: How to get Xpath of div contains attribute with value
body: <p><a href="https://i.stack.imgur.com/E6ev5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E6ev5.png" alt="enter image description here"></a>
  I am trying to locate an element for my selenium tests. I tried to write the following xpath but it doesn't seem to work for me. </p>
  
  <p>I tried :</p>
  
  <pre><code>//div[contains(@tb-test-id, 'Distribution')]
  </code></pre>
  
  <p>Note: </p>
  
  <p>I am aware of the fact that I can use the CssSelector and also Xpath based on the concrete placeholder id as the parent node : tabZoneId115 and also using the relative paths in Xpath. My scenario here is little complicate as I want to click on several other elements on this page and likewise i will need to write elements for hundreds of test cases. So I am planning to write one test case and trying to provide data driven excel sheet, so that people can maintain the test cases by only adding the title of text box, in this case 'DISTRIBUTION' is the title of the text box report. </p>
  
  <p>Please guide me on how I locate the right element for me click. Thanks in advance. </p>