[Sikuli-driver] [Question #404173]: Compare a part of image in a source image using selenium
New question #404173 on Sikuli: https://answers.launchpad.net/sikuli/+question/404173 Hi All, I have 2 question. Please help me resolve the issue. 1. I have a source image which is 79 X 43 Pixels. I need to compare the same with another image (which I capture during execution) and check if the small portion of image exist. 2. Cont of Part 1. Will I be able to read the text inside the image or recognize the text inside the image? Please share your thoughts. Thanks in Advance Varun -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #404173]: Compare a part of image in a source image using selenium
Question #404173 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/404173 Status: Answered => Solved Varun Palani confirmed that the question is solved: Thanks masuo, that solved my question. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #637765]: Sikuli Framework - Issue in using switch statement to perform the actions from different .py file
New question #637765 on Sikuli: https://answers.launchpad.net/sikuli/+question/637765 Hi All, I have been trying to create an automation framework for Sikuli X-1.Orc3 IDE for my project. Here is my flow.. 1. To read data from CSV file 2. Extract the image from the image dictionary 3. With help Keyword extracted from CSV file and Image from the dictionary perform actions in the screen. Code: InputRead.sikuli --> Inputread.py ## import csv import os from ImageDictionary import TestImgDict from Actions import Actions def readcsvfile(): try : mypath = os.path.dirname(getBundlePath()) obj1 = Actions() input = open(, 'rb') for line in input.readlines(): Field,Keyword,value = line.strip().split('",") print Field,Keyword,value Runresult = obj1.Actions(Field,keyword,value) print Runresult except IOError: Print "Input File not Found" readcsvfile() ImageDictionary.sikuli --> ImageDictionary.py Class TestImgDict(object): ImgDict = {} def __init__(self) self.imgDict = {} self.addImage("LoginName_Txtbox",) def getImage(self, name, img): return self.imgDict[name] Actions.sikuli --> Actions.py ## from ImageDictionary import TestImgDict import ConfigParser Class Actions(object): def __init__(self): config = ConfigParser.ConfigParser() config.read() def Actions(Field,keyword,value): obj = TestImgDict() return { 'Type' : type(obj.getImage(Field),value) }.get(keyword, 'NoValue') ## Error message: errors in loading sikuli module %s\%s\n - HOW TO FIX? ... no viable alternative at input "Type"... How to fix try adding "from sikuli import * " in the module. I know missed something in the code.. I have been trying to find the root cause. Please help.. Please guide me.. Thanks -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #637765]: Sikuli Framework - Issue in using switch statement to perform the actions from different .py file
Question #637765 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/637765 Description changed to: Hi All, I have been trying to create an automation framework for Sikuli X-1.Orc3 IDE for my project. Here is my flow.. 1. To read data from CSV file 2. Extract the image from the image dictionary 3. With help Keyword extracted from CSV file and Image from the dictionary perform actions in the screen. Code: InputRead.sikuli --> Inputread.py ## import csv import os from ImageDictionary import TestImgDict from Actions import Actions def readcsvfile(): try : mypath = os.path.dirname(getBundlePath()) obj1 = Actions() input = open(, 'rb') for line in input.readlines(): Field,Keyword,value = line.strip().split('",") print Field,Keyword,value Runresult = obj1.Actions(Field,keyword,value) print Runresult except IOError: Print "Input File not Found" readcsvfile() ImageDictionary.sikuli --> ImageDictionary.py Class TestImgDict(object): ImgDict = {} def __init__(self) self.imgDict = {} self.addImage("LoginName_Txtbox",) def getImage(self, name, img): return self.imgDict[name] Actions.sikuli --> Actions.py ## from ImageDictionary import TestImgDict import ConfigParser Class Actions(object): def __init__(self): config = ConfigParser.ConfigParser() config.read() def Actions(Field,keyword,value): obj = TestImgDict() return { 'Type' : type(obj.getImage(Field),value) }.get(keyword, 'NoValue') ## Error message: Type Error : Actions() takes exactly 3 arugment (4 given). I know missed something in the code.. I have been trying to find the root cause. Please help.. Please guide me.. Thanks -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #637765]: Sikuli Framework - Issue in using switch statement to perform the actions from different .py file
Question #637765 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/637765 Status: Answered => Open Varun Palani is still having a problem: Hi Raiman.. I agree.. Unfortunately I am not the system admin.. I will upgrade the system. Still the same error message TypeError: Actions() takes exactly 3 arguments (4 given).. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #637765]: Sikuli Framework - Issue in using switch statement to perform the actions from different .py file
Question #637765 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/637765 Status: Answered => Open Varun Palani is still having a problem: Hi masuo, class file is old. I deleted it. Still the same error message. :( -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #637765]: Sikuli Framework - Issue in using switch statement to perform the actions from different .py file
Question #637765 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/637765 Status: Answered => Solved Varun Palani confirmed that the question is solved: Thanks masuo, that solved my question. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #658655]: Import error : Errors in loading sikuli module
New question #658655 on Sikuli: https://answers.launchpad.net/sikuli/+question/658655 Hi All, I am a beginner in python and sikuli. Please help me with the issue. /SikuliFramework/InputRead.sikuli --> Inputread.py ## import csv import os from ImageDictionary import TestImgDict def readcsvfile(): try : mypath = os.path.dirname(getBundlePath()) obj1 = Actions() input = open(, 'rb') for line in input.readlines(): Field,Keyword,value = line.strip().split('",") print Field,Keyword,value Runresult = obj1.Actions(Field,keyword,value) print Runresult except IOError: Print "Input File not Found" def Actions(Field,keyword,value) obj = TestImgDict() return{ 'Type' : type(obj.getImage(Field),value), }.get(Keyword,'No Value') readcsvfile() /SikuliFramework/ImageDictionary.sikuli --> ImageDictionary.py Class TestImgDict(object): ImgDict = {} def __init__(self) self.imgDict = {} self.addImage("LoginName_Txtbox",) def getImage(self, name, img): return self.imgDict[name] Error Message: [Error] stopped [Error] An error occurs at Line 3 [Error] Error Message: Traceback (most recent call last): File "/tmp/sikuli-tmp507743855526457893.py", Line 3, in from ImageDictionary import TestImgDict File "/usr/share/Sikuli/Lib/sikuli/SikuliImporter.py", line 45, in load module return self._load_module(module_name) File "/usr/share/Sikuli/Lib/sikuli/SikuliImporter.py", line 29, in load module raise ImportError("Errors in loading sikuli module:%s \n%s\n" - HOW TO FIX\ Try adding \"from sikuli import*\" in the module .\n" %(fullname, e)) ImportError : Errors in loading sikuli module: ImageDictionary mismatched input '\n' expecting DEDENT (ImageDictiomnary.py, line 9) -How TO fix? Try adding "from sikuli import *" in the module. I am using Sikuli x-1.0rc3 and in linux debian jessi. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #658655]: Import error : Errors in loading sikuli module
Question #658655 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/658655 Varun Palani posted a new comment: Thanks Raiman.. I will upgrade the Sikuli.. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #658655]: Import error : Errors in loading sikuli module
Question #658655 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/658655 Status: Answered => Solved Varun Palani confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #659217]: Click 1st item in the Menu drop down
New question #659217 on Sikuli: https://answers.launchpad.net/sikuli/+question/659217 Hi All, I am working on application where I need to click on "Selection" menu and click on "Employee" submenu. Main = Find("image.png") click("image.png") employee = match(menu.getX(), Menu.getY(),0,0,1) click(employee) It did not work. I know I am doing basics wrong. Can you please help me. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #659217]: Click 1st item in the Menu drop down
Question #659217 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/659217 Description changed to: Hi All, I am working on application where I need to click on "Selection" menu and click on "Employee" submenu. Main = Find("image.png") click("image.png") employee = match(menu.getX(), menu.getY()+10,0,0,1) click(employee) It did not work. I know I am doing basics wrong. Can you please help me. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #658655]: Import error : Errors in loading sikuli module
Question #658655 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/658655 Status: Solved => Open Varun Palani is still having a problem: I have upgraded sikuli x to 1.1.1 and when i tried to execute the same I am getting "Syntax Error ((!! while importing!! mismatched input '\n'" expecting dedent (Image dictionary.py line 9. Could you please help me. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #659217]: Click 1st item in the Menu drop down
Question #659217 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/659217 Status: Open => Solved Varun Palani confirmed that the question is solved: It worked just did some analysis.. used Main = Find("image.png") click("image.png") employee = menu.below(20) click(employee) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp