How to get the xpath for the second element in the dropdown from below html I am using C# with specflow and selenium
In the UI there is a static dropdown under the property type and within it have two options Residential and Business I need to find the second one.
<select class= "form-control ng-pristine ng-empty ng-invalid-required ng-touched" type="text"
id="propertyType" name="propertyTypr" ng-modal="lead.currentLeadContact.IsResidential" required
style>
<option value="? object:null ?"></option>
<option value="true">Residintial</option>
<option value="false">Business</option>
</select>
Already tried with
//select[@id='prorpertyType']/option[@value='false' and . ='Business']
and
//select[@id='propertyType' and @value='1'] same xpath with value 0 and 2
I appreciate if anyone could help me with that.