My HTML code:
<select id="selectrepo" class="col-md-5 col-md-offset-1 select ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" ng-required="true" ng-model="locFrmdata" ng-disabled="!locPathdet" name="select" required="required">
<option id="dfltval" selected="selected" value="">Kiezen</option>
<option id="locDet+'0'" class="ng-binding ng-scope" value="\keur\BVGO" ng-repeat="locationDet in childRepos track by $index">\keur\BVGO</option>
</select>
This is the WebDriver code I'm writing:
String repos = new String("\keur\BVGO");
Select repo = new Select(driver.findElement(By.id("selectrepo")));
repo.selectByVisibleText(repos);
and also
repo.selectByValue("\keur\BVGO");
repo.selectByVisibleText("\keur\BVGO");
How do I find this element?