[Sikuli-driver] [Bug 1504627] Re: [request] A workaround for highlighting not working on linux
another possible approach is to overlay the area with a widget containing the copied contents of the area below. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1504627 Title: [request] A workaround for highlighting not working on linux Status in Sikuli: In Progress Bug description: Faced with the problem of debugging why the hell scripts fail on linux I made this very simple app to work as a replacement for Region.highlight function: https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing It needs qt/qbs to compile but once you do, you can simply use the function below everywhere, where region.highlight was used def highlight(reg, time): subprocess.call(["/adp/arm/regionHighlighter.sh", "--width=" + str(reg.getW()), "--height=" + str(reg.getH()), "--top=" + str(reg.getY()), "--left=" + str(reg.getX()), "--time=" + str(time)]); reg.wait(time/1000) the parameters above are self-explanatory I think. Except time, which is in milliseconds To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1504627/+subscriptions ___ 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] [Bug 1096528] Re: highlight doesn't work in linux
https://answers.launchpad.net/sikuli/+question/272256 You can work around the issue as I explained in the post above. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1096528 Title: highlight doesn't work in linux Status in Sikuli: In Progress Bug description: The messages say as much so it's clearly a known issue, but I was surprised there was no bug report for it. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1096528/+subscriptions ___ 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 #272252]: Authority To Operate on a Government System needed
Question #272252 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272252 Zeks posted a new comment: Why do you even need to use sikuli on a military installation? you can just as well test apps on a local PC with the same OS and then deploy on a real system. that's what I am doing -- 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] [Bug 1504627] Re: [request] A workaround for highlighting not working on linux
Essentially, I tried to make transparency work but decided the trouble is not worth it (especially on VMWare which adds whole new level to frustration) and "painted" the frame with four 2px widgets around the area. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1504627 Title: [request] A workaround for highlighting not working on linux Status in Sikuli: In Progress Bug description: Faced with the problem of debugging why the hell scripts fail on linux I made this very simple app to work as a replacement for Region.highlight function: https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing It needs qt/qbs to compile but once you do, you can simply use the function below everywhere, where region.highlight was used def highlight(reg, time): subprocess.call(["/adp/arm/regionHighlighter.sh", "--width=" + str(reg.getW()), "--height=" + str(reg.getH()), "--top=" + str(reg.getY()), "--left=" + str(reg.getX()), "--time=" + str(time)]); reg.wait(time/1000) the parameters above are self-explanatory I think. Except time, which is in milliseconds To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1504627/+subscriptions ___ 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 #272256]: A workaround for highlighting not working on linux
Question #272256 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272256 Status: Open => Solved Zeks confirmed that the question is solved: the shell script is needed to set LD_LIBRARY_PATH to recognize path to libQt5Gui etc -- 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 #272256]: A workaround for highlighting not working on linux
New question #272256 on Sikuli: https://answers.launchpad.net/sikuli/+question/272256 Faced with the problem of debugging why the hell scripts fail on linux I made this very simple app to work as a replacement for Region.highlight function: https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing It needs qt/qbs to compile but once you do, you can simply use the function below everywhere, where region.highlight was used def highlight(reg, time): subprocess.call(["/adp/arm/regionHighlighter.sh", "--width=" + str(reg.getW()), "--height=" + str(reg.getH()), "--top=" + str(reg.getY()), "--left=" + str(reg.getX()), "--time=" + str(time)]); reg.wait(time/1000) the parameters above are self-explanatory I think. Except time, which is in milliseconds -- 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] [Bug 1473920] Re: when i use IDE run my sikuli project file,I meet an error which named“[error] IDE: A non-IOException-problem when trying to save null Error: null”
I often have the same problem. This usually happens when indentation is off or tabs are used instead of spaces. Really annoying, cause it simply should not affect file save functionality in any way. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1473920 Title: when i use IDE run my sikuli project file,I meet an error which named“[error] IDE: A non-IOException-problem when trying to save null Error: null” Status in Sikuli: New Bug description: when i use IDE run my sikuli project file,I meet an error which named“[error] IDE: A non-IOException-problem when trying to save null Error: null” my sikuli project name is Wechat and my file name is Wechat. wechat file are following # -*- coding: utf-8 -*- from __future__ import with_statement from sikuliwrapper import * addImagePath(common.cfgImageLibrary) class Wechat(BaseLogger): ROBOT_LIBRARY_SCOPE = 'TEST SUITE' def __init__(self): self.appCoordinates = (0, 0, 1024, 768) def startwechat(self): click(wechat_icon.png) wait(5) click(more.png) wait(5) click(switch_account.png) wait(5) click(login_type.png) wait(5) click(account.png) wait(5) Settings.TypeDelay = 1 type(2919658499\n) wait(5) click(password.png) wait(5) Settings.TypeDelay=1 type(wanshen1\n) wait(5) click(login_button.png) def search_public_number(self) click(search_button.png) wait(2) Settings.TypeDelay=1 type(睿博研发) def runTest(self): self.startwechat() self.search_public_number() if __name__ == '__main__': Wechat().runTest() best regard thanks To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1473920/+subscriptions ___ 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 #268529]: where is sikuli-script.jar equivalent when integrating with Robotframework, Selenium
Question #268529 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/268529 Status: Open = Answered Zeks proposed the following answer: Correct usage of jython requires jython -cp YOUR-CLASSPATH script.py -- You received this question notification because you are a member of Sikuli Drivers, which 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 #268015]: Feature request: actions to go directly to clipboard
New question #268015 on Sikuli: https://answers.launchpad.net/sikuli/+question/268015 As I go further away from running most scripts in Sikuli IDE I've realized that the only activity it is superior for is taking screenshots wrapped in waitFor, click, exists etc... Now that I realized it, it turns out that what I REALLY want is to copy the text appearing in the IDE directly to clipboard for insertion in PyCharm. For example: I click on exists, select and name a screenshot, the text exists(Pattern(screen1.png)) appears in IDE. What I want to happen is for it to also automagically be inserted into clipboard so that I can immediately paste it into PyCharm. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267998]: Push/Pop and addImagePath
Question #267998 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267998 Zeks posted a new comment: Hm, but what will happen if the image name is in someContext.sikuli, but the actual search function is in entirely separate module? I usually do stuff like SupportModule.findEntity(imageName). will it search ONLY the context of someContext? Otherwise it will either not find it or there will be a clash. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267998]: Push/Pop and addImagePath
Question #267998 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267998 Zeks posted a new comment: Kinda related to that: I want some selector in the ide where I can (with 1 click) choose from a set of directories one that is currently used to save screenshots. Say, I want to do some mail screenshots, I click Drive:\Project\Mail in this element and the next time I make a screenshot it will save into that folder. The reason I need this for is because of the way my screenshots are organized I always have to 1) make a screenshot into .sikuli folder 2) copy/paste it into folder it really supposed to live in -- You received this question notification because you are a member of Sikuli Drivers, which 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] [Bug 1464277] [NEW] [request] Gui element for IDE to allow quick selection of screenshot folder
Public bug reported: Any serious project will have its screenshot database structured in some way. Currently, the application can only take screenshots into the current script's folder which is not very convenient and requires excessive copy/pasting of taken images into different folders. As I see it - the process can be greatly simplified by adding listview or another similar element to IDE's main window in which user will be able to select current folder for screenshots in 1 click from a set he predefined. Say, I want to do some mail screenshots, I click Drive:\Project\Mail in this element and the next time I make a screenshot it will save into that folder. ** Affects: sikuli Importance: Undecided Status: New ** Tags: request -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1464277 Title: [request] Gui element for IDE to allow quick selection of screenshot folder Status in Sikuli: New Bug description: Any serious project will have its screenshot database structured in some way. Currently, the application can only take screenshots into the current script's folder which is not very convenient and requires excessive copy/pasting of taken images into different folders. As I see it - the process can be greatly simplified by adding listview or another similar element to IDE's main window in which user will be able to select current folder for screenshots in 1 click from a set he predefined. Say, I want to do some mail screenshots, I click Drive:\Project\Mail in this element and the next time I make a screenshot it will save into that folder. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1464277/+subscriptions ___ 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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website
Question #267957 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267957 Zeks posted a new comment: I am interested - what do you mean by project requirement? Is there some policy in the company that makes sikuli scripts for any functionality a must ? If so, why don't they give guidelines for it? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website
Question #267957 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267957 Zeks posted a new comment: well, I don't really know any advanced tutorial, but here is what I've learned so far: 1) turn off automatic image naming. you'd want to work outside sikuli IDE for any serious testing and file' names should make sense cause you will not see images anywhere else 2) reuse screenshots when possible. try to place them outside top level sikuli test scripts if there is a chance that they will be needed elsewhere 3) Modularize test scripts. Some operations are inevitably going to be shared between scripts and copy pasting them is a big no. Modularization helps code reuse as you only have ONE place to fix the code in. 4) Limit the scope the application has to search to find a match. For most windows I split them into named subregions and only perform matches within them, not a global window. If a split is made at runtime it can even compensate for small interface changes. Split is done by anchor points which really are elements that define corners of a particular region. 5) Do not debug scripts in sikuli IDE. it wastes a lot of time as it is clearly not suited for the task 6) You will most likely need to automate scripts. Learn how to use robot framework early. It really is not that hard and helps a lot 7) keep scripts in source control repository. in the end test scripts are code, same as project code and deserve same treatment 8) Sikuli currently has no error reporting on operations such as click(). Prepare to check the sanity of operations such as click(None) yourself Keep in mind that I am a total Sikuli noob myself and I am still learning too. Maybe someone can give better guidelines. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267986]: Watch out for 4 different Images followed by 4 different Keyboard inputs. Scanning all images all the time.
Question #267986 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267986 Zeks posted a new comment: There is an observer functionality in Sikuli, I think this is what you need: http://doc.sikuli.org/region.html look for: Observing Visual Events in a Region -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website
Question #267957 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267957 Zeks posted a new comment: If there are a bunch of test scripts for some application, chances are - you'd want to run them in succession, preferably not startng each one by hand and , ideally, getting a combined report. Robot framework does just that. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website
Question #267957 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267957 Zeks posted a new comment: 9) Abstract away interface elements such as buttons and table cells When you write click(Pattern('send.png')) what you really want is to click on button, not on screenshot. And buttons have states. A button can be pressed, hovered or cleaned, same with table cells. Instead what will save you time is: clickEntity('button') the clickEntity function you will have to write yourself. It needs to match not one, but 3 screenshots and give/click the best match. How it will do that is debatable. I, at the moment, do stuff like this buttons = ['send', {name = 'send', states = ['clean', 'hovered', 'pressed']}] In the folder there are files send_clean.png, send_hovered.png... So if I have a send window it is implemented in Send module and used as Send.clickEntity('send') The function iterates over buttons dictionary, creating names as it goes and tries to find each one. The result? Where you'd likely have to write in the main script(each time): click(Pattern('send_clean.png')) if not click(Pattern('send_hovered.png')) if not click(Pattern('send_.png')) it becomes simple Module.click('entity') this helps both readability and abstraction and will likely save you a lot of time -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267957]: I am new on sikuli and started using sikuli as project requirement.PLease tell me any advance sikuli tutorial website
Question #267957 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267957 Zeks posted a new comment: cleaned = clean in the previous post. meaning button without any state changing its appearance -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267998]: Push/Pop and addImagePath
New question #267998 on Sikuli: https://answers.launchpad.net/sikuli/+question/267998 To avoid name clashes and simplify development all of my screenshots are organized as Project/Module/Window/Name1.png ... Sometines there can be intersection as in Project/Module/Window/Name1.png Project/Module2/Window/Name1.png therefore I use a pattern everywhere: A module.py contains a part of the path to add while searching for its images and invokes search function as findEntity(globalProjectPath + moduleImagePath) which is in the function used as: addImagePath(path) remove imagePath(path) repeated everywhere. This does resolve any possible name clashes but this removeImagePath seems excessive. I kinda remember OpenGL programming where you could glPushContext/glPopContext. Can we have stuff like that for imagePath in sikuli? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267905]: Can't make PyCharm run sikuli scripts
Question #267905 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267905 Status: Open = Solved Zeks confirmed that the question is solved: I've even tried setting classpath as a global variable and running jython from windows command line as: jython.exe -Dpython.path=K:\api_sikuli\sikulixapi.jar K:/sikuli/pdi/Tests/t_spp.sikuli/t_spp.py wit the same result. So it's not exactly a PyCharm problem, more of a jython/sikuliapi problem. What am I missing here? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267905]: Can't make PyCharm run sikuli scripts
Question #267905 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267905 Zeks posted a new comment: Ooops. sorry for double posting, launchpad has weird interface _ -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267905]: Can't make PyCharm run sikuli scripts
Question #267905 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267905 Status: Open = Solved Zeks confirmed that the question is solved: I've actually managed to make things work. In addition to -Dpython,path there needs to be: -cp K:\api_sikuli\sikulixapi.jar in the command line. CLASSPATH variable simply does not work. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267905]: Can't make PyCharm run sikuli scripts
Question #267905 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267905 Status: Solved = Open Zeks is still having a problem: I've even tried setting classpath as a global variable and running jython from windows command line as: jython.exe -Dpython.path=K:\api_sikuli\sikulixapi.jar K:/sikuli/pdi/Tests/t_spp.sikuli/t_spp.py wit the same result. So it's not exactly a PyCharm problem, more of a jython/sikuliapi problem. What am I missing here? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267905]: Can't make PyCharm run sikuli scripts
New question #267905 on Sikuli: https://answers.launchpad.net/sikuli/+question/267905 I can't make PyCharm see sikuli environment for some reason. sikuli 1.1 070615 nightly build jython 2.7 windows 7 64 bit Pycharm 4.5.1 Project run settings: http://s14.postimg.org/lcbh62wyp/08_06_2015_19_17_34.png I've set CLASSPATH as per screenshot and added sikuli jar as Add content root in project settings. Still I only get the error RunTimeINIT: *** terminating: no valid Java context for SikuliX available (java.security.CodeSource.getLocation() is null) what can this be? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267768]: IDE needs to be able to rerun the last line
New question #267768 on Sikuli: https://answers.launchpad.net/sikuli/+question/267768 Having extensively worked with sikuli the last 2 weeks I think IDE lacks 2 very important features: 1) reload imported scripts 2) rerun last line My workflow usually goes like that: -- some lengthy script executes but fails at some line in the middle -- I try commenting out lines before this one -- this in itself is a feat as IDE does not highlight lines commented with ''' -- I fail as IDE fails to save script (see my previous bug) (not always) -- If it does not fail to save I try to rerun the line to make sure there were no problems due to elements being slow to appear -- if it is a legitimate error in imported script that I wrote, I fix it and HAVE TO RELAUNCH THE IDE -- I relaunch and rerun the script -- the script has to do all the init stuff again before it can run the problematic line There are a lot of unnecessary actions above. relaunching the IDE, reinitializing anchor points pre-script execution, having to comment out chunks of code so that I don't have to run the whole script up to this line again... Could we please have the ide that does not require all that?:) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267756]: Do sikuli identify minor differences in image
Question #267756 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267756 Zeks posted a new comment: you can set pattern similarity when you search the screen for an image. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #267723]: How to distinguish two (or more) equal buttons in one image?
Question #267723 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/267723 Zeks posted a new comment: Normally if the buttons have the same image this means they are positioned at a different regions of the application. My workflow is to split the window into regions based on some distinct anchor points when the script starts and later use these subregions to ensure correct buttons are clicked -- You received this question notification because you are a member of Sikuli Drivers, which 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] [Bug 1460616] Re: Error saving files in IDE
oh and this was done with sikulixsetup-1.1.0-20150422.231024-47-forsetup -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: New Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == __main__: testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+subscriptions ___ 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] [Bug 1460616] Re: Error saving files in IDE
Ok, I have tried recreating the steps and here is what I've come with: What I did was creating a completely new script file in : K:\SikuliX\pdi\Tests and retyping the text in the example from first post saving after every line. K:\SikuliX is used as sikuli home folder and runsikuli script is used from it as well. Note that my tabs are 4 spaces and insert whitespace in place of tabs option is active. I started from the beginning and when I typed FilterTable.clickMessage(message21) and tried to save it it produced the error: [error] IDE: A non-IOException-problem when trying to save null Error: null Hope this helps to find the problem -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: New Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == __main__: testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+subscriptions ___ 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] [Bug 1460616] [NEW] Error saving files in IDE
Public bug reported: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == __main__: testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: New Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == __main__: testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+subscriptions ___ 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] [Bug 1460616] Re: Error saving files in IDE
Oh, and I am on windows 7 64 bit, sikuli 1.1 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: New Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == __main__: testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+subscriptions ___ 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] [Bug 1460616] Re: Error saving files in IDE
Imported IN another one, sorry -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: New Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == __main__: testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+subscriptions ___ 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] [Bug 1460616] Re: Error saving files in IDE
This script (the one I extracted this piece from) is imported from another one that is a wrapper for robot framework. I will try to answer your questions tomorrow -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: New Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == __main__: testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+subscriptions ___ 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] [Bug 1460616] Re: Error saving files in IDE
Yeah, that is it. Problem is - it is not so rare for me. It happens all the time and is extremely annoying. -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: New Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == __main__: testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+subscriptions ___ 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] [Bug 1460616] Re: Error saving files in IDE
And no, this is not an excel sheet processing. This is a submodule testing Qt/C++ table application -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: New Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == __main__: testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+subscriptions ___ 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] [Bug 1460616] Re: Error saving files in IDE
Hmm, no. I am indeed on Russian locale, but folder paths are all in English and even contain no whitespaces. We will see what happens with tomorrow's build, if this doesn't help I will attach the file in case simple copy paste can't reproduce the problem -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1460616 Title: Error saving files in IDE Status in Sikuli: New Bug description: I have finally been able to make a minimal test case for when IDE fails to save the file: # -*- coding: utf-8 -*- import sys from sikuli import * from sikuli.Sikuli import * sys.path.append(projectPath) def testMessageEdit(): assert() message21 = TableCell() FilterTable.clickMessage(message21) wait(2) if __name__ == __main__: testMessageEdit() Try entering the code above in a new file and save. It will report: [error] IDE: A non-IOException-problem when trying to save null Error: null This happens way too often and usually in files not as obvious as this one. It is so bad that I mostly have to work in notepad++ and only run scripts from IDE. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1460616/+subscriptions ___ 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] [Bug 1457905] [NEW] [1.0.1] click() returns 1 if called with None
Public bug reported: Sikuli 1.0.1, Win 7 64 I wanted to do some fail state checking by catching return of click function and was very surprised that click returns 1 even if it is passed invalid object. is it intended? ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1457905 Title: [1.0.1] click() returns 1 if called with None Status in Sikuli: New Bug description: Sikuli 1.0.1, Win 7 64 I wanted to do some fail state checking by catching return of click function and was very surprised that click returns 1 even if it is passed invalid object. is it intended? To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1457905/+subscriptions ___ 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] [Bug 1447636] [NEW] 1.1 IDE can't save scripts
Public bug reported: Windows 7 64 bit, latest sikuli 1.1 jar file. when trying to save scripts I get: [error] IDE: A non-IOException-problem when trying to save null Error: null What's interesting it does seem to save .py file, but hmtl is empty ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1447636 Title: 1.1 IDE can't save scripts Status in Sikuli: New Bug description: Windows 7 64 bit, latest sikuli 1.1 jar file. when trying to save scripts I get: [error] IDE: A non-IOException-problem when trying to save null Error: null What's interesting it does seem to save .py file, but hmtl is empty To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1447636/+subscriptions ___ 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] [Bug 1447636] Re: 1.1 IDE can't save scripts
UPD: transferring the text to this editor seems to have converted tabs to lesser amount of spaces (It was 4). The version from the post earlier if posted back into IDE can be saved, but once you make tabs 4 spaces again it starts failing -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1447636 Title: 1.1 IDE can't save scripts Status in Sikuli: New Bug description: Windows 7 64 bit, latest sikuli 1.1 jar file. when trying to save scripts I get: [error] IDE: A non-IOException-problem when trying to save null Error: null What's interesting it does seem to save .py file, but hmtl is empty To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1447636/+subscriptions ___ 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] [Bug 1447636] Re: 1.1 IDE can't save scripts
Hm, no, actually, it persists through versions. The problem seems to arise from init/classes as none of my simple scripts ever displayed that behavior. As a test, you can try to save this text (it's a modified robot framework integration example): I tried to see if tehre is a consistent point at which it starts to fail saving by adding/removing chunks of text but it seems to be somewhat inconsistent from __future__ import with_statement from sikuli import * from sikuli.Sikuli import * addImagePath(pdi.sikuli) class PDI(object): def __init__(self): self.appCoordinates = (0, 0, 1920, 1080) def startApp(self): calcApp = App(PDI) if not calcApp.window(): App.open(K:\\Deploy\\Arm\\release\\ARMPDI.exe); wait(8) calcApp.focus(); wait(1) def verifyApp(self): # check application if exists(): print(PASS: Calculator window appeared) else: print(FAIL: No calculator window) raise(FAIL: No calculator window) def loginApp(self): type(Key.ENTER) def runTest(self): self.startApp() self.verifyApp() if __name__ == __main__: calc = Calculator() calc.runTest() -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1447636 Title: 1.1 IDE can't save scripts Status in Sikuli: New Bug description: Windows 7 64 bit, latest sikuli 1.1 jar file. when trying to save scripts I get: [error] IDE: A non-IOException-problem when trying to save null Error: null What's interesting it does seem to save .py file, but hmtl is empty To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1447636/+subscriptions ___ 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] [Bug 1447636] Re: 1.1 IDE can't save scripts
older version of sikuli (1.0.1) on the same machine does not have this problem -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1447636 Title: 1.1 IDE can't save scripts Status in Sikuli: New Bug description: Windows 7 64 bit, latest sikuli 1.1 jar file. when trying to save scripts I get: [error] IDE: A non-IOException-problem when trying to save null Error: null What's interesting it does seem to save .py file, but hmtl is empty To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1447636/+subscriptions ___ 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