<span class="select2-selection__rendered" id="select2-office_id-container" title="--select--">--select--</span>
<span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>
I am trying with below code, but unable to select dropdown
WebElement e1=driver.findElement(By.xpath("//*[@id='select2-office_id-container']"));
Actions a1=new Actions(driver);
a1.click(e1).sendKeys("Office of the Civil Registrar-cum-Sub Registrar,Sattari", Keys.ENTER).build().perform();