I have a Webdriver test case written in Ruby as below, and I want to make it run for example 100 times:
require 'rubygems'
require 'selenium-webdriver'
$i = 0
$num = 100
while $i<$num do
driver = Selenium::WebDriver.for :firefox
driver.get "https://dev08-olb.nz.thenational.com/ib4b/app/login"
# some other test which require $i to be incremental as unique ID
driver.close
i++
end
It does like it.
Can you show me how to execute it as many time as I want?
Thanks.