Convert from Integer to String – Selenium 

Here is the Selenium example code that uses Integer.toString in Selenium.Type command
int i = 1000;
while(i != 999999){
selenium.type("id=resetKey" , Integer.toString(i) );
selenium.click("id=button");
selenium.waitForPageToLoad("30000");
i = i + 1 ;
Thread.sleep(500);
}


Author: Pavandeep Puddupakkam on September 2, 2011
Category: Selenium RC
Tags: , ,
Selenium Webdriver Forum -The Online Community for Selenium Webdriver and Selenium RC Users and Professionals

Leave a Reply

Last articles