When passing a value, system is selecting different value from the drop down in selenium web driver. Following is the code written:- driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).click(); driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).sendKeys(mystring[5]); driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).sendKeys(Keys.ARROW_DOWN,Keys.ENTER);