Re: [Sikuli-driver] [Question #671319]: Saving Clipboard in to a variable
Question #671319 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671319 Description changed to: Hi there, I've seen a lot of tickets with regards clipboard(). I am using a Mac and installed Sikulix 1.1.2. Using the following commands: doubleClick(Pattern(someText).targetOffset(90,-70)) and type("c", KeyModifier.CMD) someText = App.getClipboard() print("This is " + str(someText) + " to be printed.") It looks like that it does not work "sometimes". Physically using the CMD and 'C' combined does work properly, meaning it prints the correct string. Is this (what I've been reading) still an issue with JAVA, that simply cannot be solved? Or is there an alternative what I could not find? Thanks again for the help. Regards, Sander -- 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 #671319]: Saving Clipboard in to a variable
Question #671319 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671319 Description changed to: Hi there, I've seen a lot of tickets with regards clipboard(). I am using a Mac and installed Sikulix 1.1.2. Using the following command: doubleClick(Pattern(someText).targetOffset(90,-70)) and type("c", KeyModifier.CMD) someText = App.getClipboard() #print("This is " + str(someText) + " to be printed.") It looks like that it does not work "sometimes". Physically using the CMD and 'C' combined does work properly, meaning it prints the correct string. Is this (what I've been reading) still an issue with JAVA, that simply cannot be solved? Or is there an alternative what I could not find? Thanks again for the help. Regards, Sander -- 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 #671319]: Saving Clipboard in to a variable
New question #671319 on Sikuli: https://answers.launchpad.net/sikuli/+question/671319 Hi there, I've seen a lot of tickets with regards clipboard(). I am using a Mac and installed 1.1.2. Using the following command: doubleClick(Pattern(someText).targetOffset(90,-70)) and type("c", KeyModifier.CMD) It looks like that it does not work "sometimes". Physically using the CMD and 'C' combined does work properly. Is this (what I've been reading) still an issue with JAVA, that simply cannot be solved? Or is there an alternative what I could not find? Thanks again for the help. Regards, Sander -- 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 #671307]: Sikuli does not execute the commands properly
Question #671307 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671307 Status: Answered => Solved Sander confirmed that the question is solved: Thank you for your answers, the issue is fixed. Adding wait() methods to it and now it works properly. -- 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 #671307]: Sikuli does not execute the commands properly
Question #671307 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671307 Status: Answered => Open Sander is still having a problem: Hi TestMechanic, Using Safari. Do I need to add sleep(1) after every click and type command??? Hm, I used to use Windows, that worked fine without any sleep command. Some here and there a wait command do you have any other suggestion? Just try to fill in a form using some input fields. type("123") and sleep(1) type("Key.TAB") and sleep(1) Without using Sikuli I could Tab though all input field manually without an issue. -- 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 #671307]: Sikuli does not execute the commands properly
New question #671307 on Sikuli: https://answers.launchpad.net/sikuli/+question/671307 Hi Raiman, When I execute the following: wait(POSTCODE) click(POSTCODE) type("617LZ") type(Key.TAB) type("34") click(Next) It fills in: POSTCODE: 17IZ NEXT FIELD: 634 So basically it is missing the character 6 that should be entered in the POSTCODE field, but is added into the next field. After restarting it a couple of times, did not help. Any suggestions? earlier ticket created: #671266 -- 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 #671266]: creating an image lib
Question #671266 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671266 Status: Answered => Solved Sander confirmed that the question is solved: Hi Raiman, It works, it does recognise the images :-) For the someImages.sikuli I've removed all import statements The executable script I've used: from someImages import *. (otherwise it is not working) Thanks for the help! I do see see some other issues I have, but I'll raise this in a separate ticket. Thanks for the help! Regards, Sander -- 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 #671266]: creating an image lib
Question #671266 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671266 Status: Answered => Open Sander is still having a problem: Hi Manfred, Thanks for coming back on this. You are correct. That is my mistake editing this answer. But the actual problem is, is that is returns an error for the import. I've tried what Raiman suggested but it gives an: [error] script [ executableTests] stopped with error in line 2 [error] ImportError ( No module named sikuli ) -- #someImages.sikuli from sikuli import * setBundlePath(".../Sikulix/someImages.sikuli") image1 = "image1.png" image2 = "image2.png" than: # executableTests from sikuli import * from someImages import * hover(image1) hover(image2) [...] -- [error] script [ executableTests ] stopped with error in line 2 [error] ImportError ( No module named 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 #671266]: creating an image lib
Question #671266 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671266 Status: Answered => Open Sander is still having a problem: Hi RaiMan, thanks for the prompt reply. Good to know about the goodie, that works perfectly, thanks for that. I prefer to use the variable name (less typing) and looks nice when looking at the script. But it is not working yet, this is what I did: from sikuli import * setBundlePath(".../Sikulix/someImages.sikuli") image1 = image1.png image2 = image2.png than: from sikuli import * from someImages import * hover(image1) hover(image2) -- [error] script [ executableTestsPostNLBagage ] stopped with error in line 2 [error] ImportError ( No module named sikuli ) Hope you could help me with the last bit, cheers! -- 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 #671266]: creating an image lib
Question #671266 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671266 Sander posted a new comment: Thanks RailMan, I'll take a look, yesterday I tried to figure out for view hours how this works, I'll try tonight again, and let you know if I could get it to work. Thanks for pointing this out. Got to go now. macOS rocks! :-) -- 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 #671266]: creating an image lib
Question #671266 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/671266 Status: Needs information => Open Sander gave more information on the question: Hi RailMan, sorry yes, just using my MacBook Pro. (Was already late yesterday evening) :-) If you need more info, please let me know. -- 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 #671266]: creating an image lib
New question #671266 on Sikuli: https://answers.launchpad.net/sikuli/+question/671266 Hi there, I've been using sikulix for some time on a windows machine and worked perfectly. Now I am using a iOS and finished setting up sikulix again and runs ok. What I am trying to do is capturing images save them in a folder and trying to give them proper names. This is what I did: -- from sikuli import * from sikuli.Sikuli import * class testImages(): imgDict = {} def __init__(self): self.imgDict = {} self.addImage("someTestImage", "someTestImage.png") #and like to extend this list with images def addImage(self, name, img): self.imgDict[name] = img def getImage(self, name): return self.imgDict[name] -- Than created the following: -- from sikuli import * from testImages import * from sikuli.Sikuli import * switchApp("Safari") wait("someTestImage") -- [error] RunTimeIDE: ImageMissing: someTestImage Using Windows, saving the class testImages(), it would create me a .py, .html and a py.class Now when I save the testImages class on my iOS it only creates a .sikuli file. When I capture images using the EDI the scripts runs ok, but the images captured do have this 3495374599345.png as filename (and not sure where they are stored) Could you please help me out here? So basically I want to save images manually with a proper name and create them only once. Thanks in advance. -- 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 #355875]: how to use FindAll in a loop
New question #355875 on Sikuli: https://answers.launchpad.net/sikuli/+question/355875 Hi! findAll function is really nice, however I want to use it a bit of a different purpose. I am trying to findAll checkboxes on screen, but only click a few of them. I understand that the findAll function will return all locations of the images found count = 0 findAll("checkbox") for x in findAll("checkbox"): while count < 5: click(x) count = count +1 It actually works, but it clicks on the same location five times. I've tried other functions, to use this loop, but these will return an error indicating that the object is not iterable. Hope you could help me out. Could not find an answer in an earlier raised question similar to this one, if the answer is there, hope you could link this page for 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 #294140]: re-use image name
Question #294140 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/294140 Sander posted a new comment: Hi Raiman, Thanks for your prompt relpy. I'll take your suggestion on board and come back to this if it all works fine. Cheers. Regards, Sander -- 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 #294140]: re-use image name
New question #294140 on Sikuli: https://answers.launchpad.net/sikuli/+question/294140 Hi there, As I want to test my application in different browsers, i've created (so far) two different classes firefoxTestImages(): chromeTestImages(): imgDict = {} def __init__(self): self.imgDict = {} self.addImage("checkbox", "checkbox.png") self.addImage("okButton", "okButton.png") def addImage(self, name, img): self.imgDict[name] = img def getImage(self, name): return self.imgDict[name] The image names for both classes are exactly the same (except the image). The import seems to be working fine, but when I switch from chrome to firefox it does not recognize the image anymore, just because it is still trying to find the chrome version. Is using the reload() function the way forward, what would be the best solution for this? Regards, Sander -- 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