← Back to team overview

sikuli-driver team mailing list archive

[Question #204056]: Problem With For loop

 

New question #204056 on Sikuli:
https://answers.launchpad.net/sikuli/+question/204056

Hello,

I am trying to do some several step [Adding VM disk continously] using for loop. But the loop is not iterating at all. 
Here i am pasting the code 
if (ndisk > 1):
    ndisk = int(ndisk) - 1
    for i in range(int(ndisk)):
        switchApp("New Virtual Machine - Virtual Machine properties")
        click("1343153484832.png")
        switchApp("Add Hardware")
        wait(1.5)
        click("HardDisk.png")
        click("1343145523513.png")
        click(Pattern("7Createanewv.png").targetOffset(-67,-2))
        click("Next-4.png")
        doubleClick(Pattern("IFDiskSize.png").targetOffset(28,0))
        type(d[i+1])
        click("Next-5.png")
        click("Next-6.png")
        click("Finish.png")
        
Please someone help me to do comeout of this problem

Thanks,
V.Sathyamoorthy

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.