There are two buttons on application named as "download" & "upload" with same properties/identifiers. Can someone help me how to click on button & how to handle such objects. I have tried CSS Selector, XPath other combinations as well, nothing worked for me. looking for Java code. below is the HTML for those buttons:
<div class="control-label col-md-6 control-label-left"> <button class="btn blue form-control-btn" ngf-select="vm.uploadDemographic($file)"> <i class="fa fa-upload"/> Upload Template </button> </div> 2nd Button <div class="control-label col-md-6 control-label-left"> <button class="btn blue form-control-btn" ng-click="vm.downloadTemplate('demographic')"> <i class="fa fa-download"/> Download Template </button> </div>
WebElementis identical so in absence ofidornameattribute to construct an uniquecss_selectoror anxpathwe need to see some portion of the outerHTML.