title: Selenium Select - Selecting dropdown option by part of the text
body: <p>The class <a href="https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/support/ui/Select.html" rel="noreferrer">Selenium Select</a> has 3 methods of different option selection:</p>
  
  <ol>
  <li>selectByIndex </li>
  <li>selectByValue </li>
  <li>selectByVisibleText</li>
  </ol>
  
  <p>Now, I have a situation where I want to select an option by some text that <strong>partially</strong> appear in one of the options visible text (don't want to expose myself to changes in the WHOLE text).</p>
  
  <p>For example: </p>
  
  <pre><code>&lt;option value="0" label="not-intresting"&gt;VERY-LONG-TEXT-THAT-I-NEED-TO-SELECT-DOLLAR&lt;/option&gt;
  </code></pre>
  
  <p>And i want to select this option only by providing the "DOLLAR", something like:</p>
  
  <pre><code>select.selectByPartOfVisibleText("DOLLAR") 
  </code></pre>
  
  <p>How would you implement it effectively?</p>