how to retain the selected values in a multi select dropdown in selenium IDE.SelectbyIndex and other options available does not retain the values .

Select ele_007 = new Select(driver.findElement(By.id(“007”)));
ele_007.selectByIndex(0);
Thread.sleep(2000);
ele_007.selectByIndex(1);
Thread.sleep(2000);
ele_007.deselectByIndex(2);
Thread.sleep(2000);

 

— not working .after going to the next page it is selecting the last option which is selected by default .

Add Comment
  • 1 Answer(s)

    Got itt… 🙂 Finally 😀

     

    Default Answered on April 27, 2017.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.