In firepath I saw two identical attributes, firepath has two results.
Here is the highlighted HTML code below in firebug:
<button class="list_header_search_toggle icon-search btn btn-icon table-btn-lg" style="margin-left:0px">
And below is the whole code:
<button class="list_header_search_toggle icon-search btn btn-icon table-btn-lg" style="margin-left:0px">
<span class="sr-only">Search</span>
</button>
NOTE: There is only 1 search button, I search it every where and there is only 1 but it shows two??
How to code this in selenium web driver?
The snippet from firepath:
Update:
Html code image, from firepath:


siteUrl orHtml?.//button[@id='hdr_problem_task']/th[2]/button[0].//button[@id='hdr_problem_task']/th[2]/button[1].//button[@id='hdr_problem_task']/th[2]/button[2]indexingafter completion of your xpath.