Hi, How to select random data from a drop-down ?

How to select random data from a drop-doown list ?
Thank You

Comments

  • Thank You Marek Melocik :)
  • int optionListLength = 10
    Random rand = new Random()
    int index = rand.nextInt(optionListLength + 1)

    WebUI.selectOptionByIndex(testObject, index)
Sign In or Register to comment.