visual studio 2013 - using for loop for a textbox in selenium C# -
for(int i=0;i<=10;i++) { driver.instance.find element(by.id("id of element")).send keys("auto"+i); } i used code not work 1 10 numbers printing in 1 attempt i searching code dynamically increment in each run out changing sendkeys values again , again your question not clear. trying enter value in 10 different edit boxes in single run or trying enter different values in same edit box in multiple runs (if can use random class generate random integers generate different values in different runs). random random = new random(); int = random.next(0, 10); driver.instance.find element(by.id("id of element")).send keys("auto"+i); you can increase bucket random.next(0, 10); random.next(0, 100); decrease probability of having same no in 10 runs.