Select only works on <select> elements, not on <option>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="col-md-12 col-sm-12"&gt;
  &lt;div class="row search-table-setting"&gt;
    &lt;div class="col-md-1 col-sm-2" /&gt;
    &lt;div class="col-md-1 col-sm-2 pull-right"&gt;
      &lt;div class="form-select "&gt;
        &lt;label&gt;
          &lt;select class="selectpicker classReset ng-pristine ng-untouched ng-valid bs-select-hidden" ng-change="SetPageSize()" ng-model="recordPerPage"&gt;
            &lt;option value=""&gt;10 Per Page&lt;/option&gt;
            &lt;option value="20"&gt;20 Per Page&lt;/option&gt;
            &lt;option value="30"&gt;30 Per Page&lt;/option&gt;
            &lt;option value="40"&gt;40 Per Page&lt;/option&gt;
            &lt;option value="50"&gt;50 Per Page&lt;/option&gt;
          &lt;/select&gt;</code></pre>
</div>
</div>
</p>

<p>In above code when I am trying to select the values using python web-driver, but getting the error </p>

<blockquote>
  <p>selenium.common.exceptions.UnexpectedTagNameException: Message: Select only works on  elements, not on </p>
</blockquote>

<p>Please help me how can I resolve this.</p>