Loop through CSV file and incrementing variable
I am using Sikuli 1.1.0
I have a a set of static data that I have put into a csv.
The csv has 3 columns and upto 20 rows.
I wish to apply each of the cells to a variable in a script which will do some testing.
I have been able to assign the first row to the variables I need to use but I have got myself completely confused on how to increment the selection by 1 row, so that when my first set of tests have completed I can repeat the same script with the next row of variables.
def __init__(self, filename):
with open(filename, "r") as f_input:
def get_col_row(self, col, row):
data = ContactDetails(
csvfile = list(csv.
#csvdics = 
for row in csvfile:
Cruise = data.get_col_row(1, 2)
Cell = data.get_
cruisenum = data.get_
# start booking process direct into form
wait(5) # waits 5 seconds, I increased the wait to 7 seconds - just to be safe
type("l", KeyModifier.CTRL) # press lowercase L + CTRL
print "%s %s: %s" % (Cruise, Cell, cruisenum)