← Back to team overview

sikuli-driver team mailing list archive

[Question #445671]: how to path an image to a function

 

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

I am trying to write a function:

def typeTxt(region, element, text):
          a = reg.find(element)
          click(a)
          type(text)

region = find(image_Of_region.png)
element = image_of_textBox.png
text = "Text"
typeTxt(region, element, text)

Running the script it cannot find " element" in the function is not found.
where is my mistake?
how to path region and image of text box to function?

Thanks
     

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.