employer cover photo
employer logo
employer logo

Grepthor Software Solutions

Is this your company?

Grepthor Software Solutions interview question

select value from Drop down in selemiun webdriver?

Interview Answer

Anonymous

24 Jun 2018

Select drop =new Select(driver.findElement(By.xpath("//*[@id='day']"))); drop.selectByValue("3"); Thread.sleep(3000); Select drop1 = new Select(driver.findElement(By.xpath("//*[@id='month']"))); drop1.selectByVisibleText("Apr"); Thread.sleep(3000); Select drop2 = new Select(driver.findElement(By.xpath("//*[@id='year']"))); drop2.selectByIndex(9);