sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33589
[Question #269050]: permission denied? simply click error.
New question #269050 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269050
I only want to click one icon using following script, I don't know what is wrong with the scripts.
# -*- coding: utf-8 -*-
from __future__ import with_statement
from sikuliwrapper import *
s = Screen()
# add custom image library
#path=addImagePath(common.cfgImageLibrary)
s = Screen()
class Calculator(BaseLogger):
ROBOT_LIBRARY_SCOPE = 'TEST SUITE'
def __init__(self):
self.appCoordinates = (0, 0, 1024, 768)
def login(self):
# get application region
s.find("1436437434494.png")
match = s.getLastMatch()
self.appCoordinates = (match.getX(), match.getY(), match.getW(), match.getH())
appRegion = Region(*self.appCoordinates)
appRegion.click("1436437353164.png")
def runTest(self):
self.login()
def runTest(self):
self.login()
calc = Calculator()
calc.runTest()
#################################error logs########################3
*HTML* Find Failed <img src="../images/1436437353164.png" />
[error] script [ login ] stopped with error in line 35
[error] IOError ( (13, 'Permission denied', 'results/screenshots/2015-07-09_18-24-36.png') )
[error] --- Traceback --- error source first line: module ( function ) statement 85: shutil ( copy ) File "E:\Sikulix-2014\sikulix.jar\Lib\shutil.py", line 52, in copyfile
42: logger ( screenshot ) shutil.copy(img_src, folder + name)
38: sikuliwrapper ( click ) self.log.screenshot(msg="Region", region=(self.getX(), self.getY(), self.getW(), self.getH()))
24: main ( login ) appRegion.click("1436437353164.png")
31: main ( runTest ) self.login()
[error] --- Traceback --- end -------------
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.