← Back to team overview

sikuli-driver team mailing list archive

[Question #255999]: Hi All, Please help me in solving this.

 

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

I have suppose 20 items in drop down list. If i select any one option from the list, then the result filters according to the selected option from drop down.    I have made a script for "Cancelled" option from drop down in following way- It is working fine. Please help me how to include loop in the code so that i can run the code for 20 items in drop down

 click(Pattern("1413891453.png").targetOffset(68,4))
    sleep(4)
    type("Cancelled")
    y = "Cancelled"
    sleep(2)
    type(Key.ENTER)
    sleep(4)
    click(Pattern("141388723.png").targetOffset(-45,16))
    sleep(2)
    click(Pattern("14131.png").targetOffset(-55,15))
    mouseDown(Button.LEFT)
    hover(Pattern("141774.png").targetOffset(50,15))
    sleep(2)
    mouseUp()
    sleep(2)
    type('c',Key.CTRL)
    sleep(2)
    z = Env.getClipboard().strip()
    sleep(2)

    if (z==y):
        print " drop down data filter is working fine"
    else:
        print "Not Working"

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