How to select value from Dropdown without using Select class, Becuase in have dropdown as listbox in the span not select?
<pre><code>My HTML code is here:
    &lt;fieldset&gt;
&lt;div class="clearfix"&gt;
&lt;div class="clearfix"&gt;
&lt;div class="clearfix"&gt;
&lt;div class="clearfix"&gt;
&lt;div class="qs-formfield-short qs-required"&gt;
&lt;label for="stateCountry"&gt;State or Province&lt;/label&gt;
&lt;span class="k-widget k-dropdown k-header" style="" title="" unselectable="on" role="listbox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-owns="stateCountry_listbox" aria-disabled="false" aria-readonly="false" aria-busy="false"&gt;
&lt;span class="k-dropdown-wrap k-state-default" unselectable="on"&gt;
&lt;span class="k-input" unselectable="on"&gt;Please Select...&lt;/span&gt;
&lt;span class="k-select" unselectable="on"&gt;
&lt;span class="k-icon k-i-arrow-s" unselectable="on"&gt;select&lt;/span&gt;
&lt;/span&gt;
&lt;/span&gt;
</code></pre>

<p>My Code is here:</p>

<p>WebElement stateDropDown = driver.findElement(
                By.xpath("/html/body/form/div[3]/main/div/div/div/span/div/fieldset/div[4]/div[1]/span/span[1]"));
                List options = stateDropDown.findElements(By.xpath("/html/body/div[1]/div/ul/li[44]"));</p>

<pre><code>    for(WebElement opt : options){
        if ("Texas".equals(opt.getText()));
        opt.click();
        System.out.println(opt);
</code></pre>