sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #41036
[Question #407589]: using sikuli with robot framework
New question #407589 on Sikuli:
https://answers.launchpad.net/sikuli/+question/407589
I am new to sikuli. I started using sikulix with robot framework. I want to dynamically execute sikuli api’s using robot framework. I am facing “ILLLEGALMONITORSTATEEXCEPTION” while executing “wait” command using robot framework.
*****Here is the sikuli code*********
from sikuli import *
import shutil
from os import *
from robot.api import logger
currentDirectory = os.path.dirname(getBundlePath())
setBundlePath("SikuliRunner.sikuli")
if not currentDirectory in sys.path: sys.path.append(currentDirectory)
screen = Screen()
class SikuliRunner(object):
def __init__(self):
self.appCoordinates = (0, 0, 1024, 768)
def sikulirunner(self, name, *args):
functionName = name
function = getattr(sys.modules[__name__], name)
returnValue = function(*args)
return returnValue
***Here is the robot .txt file script***
***Settings***
Library SikuliRunner.SikuliRunner WITH NAME sikuliRunner
Library String
Library Screenshot
***Test Cases***
Verify User Module
[Documentation] Sample program to check wait function
sikuliRunner system start chrome http://google.com
pause C:\\robot\\src\\1482144972382.png
sikuliRunner type gmail
please help
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.