Element should have been "select" but was "div" getting an error in selenium
<p>Here is the HTML code, i'm trying to select 'select customer' drop-down.</p>

<pre><code>&lt;div id="createTasksPopup_customerSelector" class="customerOrProjectSelector selectorWithPlaceholderContainer at-dropdown-list-btn-ct notSelected"&gt;
    &lt;table id="ext-comp-1057" class="x-btn-wrap x-btn at-dropdown-list-btn x-btn-over x-btn-focus" cellspacing="0" cellpadding="0" border="0" style="width: auto;"&gt;
       &lt;tbody&gt;
             &lt;tr id="ext-gen397" class=" x-btn-with-menu"&gt;
                  &lt;td class="x-btn-left"&gt;
                      &lt;td class="x-btn-center"&gt;
                          &lt;em unselectable="on"&gt;
                              &lt;button id="ext-gen391" class="x-btn-text" type="button"&gt;- Select Customer -&lt;/button&gt;
                          &lt;/em&gt;
                      &lt;/td&gt;
                 &lt;td class="x-btn-right"&gt;
            &lt;/tr&gt;
        &lt;/tbody&gt;
    &lt;/table&gt;
&lt;/div&gt;
</code></pre>

<p><strong>Image -</strong>
<img src="https://i.stack.imgur.com/onbkm.png" alt="enter image description here"></p>