title: How to identify and click to the button in selenium webdriver when button does not have id and title, but has hover state?
body: <p>Can anyone tell me how I can identify and click to the button which does not have title?</p>
  
  <pre><code>&lt;div class="ui-fileupload-buttonbar ui-widget-header ui-corner-top"&gt;
    &lt;span class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-left ui-fileupload-choose"&gt;
    &lt;span class="ui-button-icon-left ui-icon ui-c ui-icon-plusthick"&gt;&lt;/span&gt;
    &lt;span class="ui-button-text ui-c"&gt;Browse&lt;/span&gt;
    &lt;input id="j_idt126:attachments:j_idt128_input" name="j_idt126:attachments:j_idt128_input" type="file"&gt;
  </code></pre>
  
  <p>I have tried by below code but it is not working</p>
  
  <pre><code>By.xpath("//button[@type='button']/span[text()='Browse']"))).click();
  </code></pre>
  
  <p>How can I solve this problem in Selenium WebDriver with Java? Will be grateful for any help.</p>