I have these two options in custom dropdown –
British Indian Territory and
India. Using selenium sendKeys when I am entering “India”, it is not able to enter India in the respective country field, since it is unable to differentiate between British ‘India’n Territory and
India values in the dropdown.
Link to the website:
WebElement country = driver.findElement(By.xpath("//input[@id="countryOfBirthField"]")); country.clear(); country.sendKeys(" india ");