Pergunta de entrevista da empresa Grepthor Software Solutions

select value from Drop down in selemiun webdriver?

Resposta da entrevista

Sigiloso

24 de jun. de 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);