sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32467
Re: [Question #267116]: Run Sikuli code in Python script
Question #267116 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267116
Status: Answered => Open
juanc is still having a problem:
Thanks for your reply RaiMan.
I am working with Sikulix 1.1.0
So, if I want to run in Python in a subprocess, it should be something
like:
------------------------------------------
def runSikuliScript(path):
filepath = path
p = subprocess.Popen(filepath, shell=True, stdout = subprocess.PIPE)
stdout, stderr = p.communicate()
print "Done Running Sikuli"
def upload(self):
# Here I do a click in the browse button, an OS window is displayed
browse_button = self._browser.find_element_by_id("data-file")
browse_button.click()
# Now I want to interact with the windows using Sikulix
p = "C:\\Users\\Documents\\testupload.skl"
self.runSikuliScript(p)
-------------------------------------------
Right now I am tring to solve the import issue:
ImportError: DLL load failed: No se puede encontrar el m�dulo
especificado.
I am trying this:
Add the following to your Path environment variable (under "system
variable"):
C:\Program Files (x86)\Java\jdk[YOUR JDK VERSION]\jre\bin\server
-or-
C:\Program Files (x86)\Java\jre[YOUR JDK VERSION]\bin\client
This was pointed out here, and it also points out you should set the
JAVA_HOME "user variable":
C:\Program Files (x86)\Java\jdk[YOUR JDK VERSION]
but is not working.
But once I solve this issue I will keep you updated on the resolution of
the original problem!
Thanks in advance!
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.