Re: [Sikuli-driver] [Question #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 RaiMan proposed the following answer: @Justin Ok, understood. So if you are more the type programming-by-example, then the docs of Sikuli currently do not have much for Java. Here I fully agree with Eugene. I will surely enhance that over the next months. ... but on the other hand: a Java programmer must be able to read javadocs: http://nightly.sikuli.de/docs/index.html so since screen.exists(new Pattern(image6).similar(0.95),1); returns a Match object, it has to be Match myMatch = screen.exists(new Pattern(image6).similar(0.95),1); to store the Match object for later use. -- 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 Status: Answered = Solved Justin Veerman confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 RaiMan proposed the following answer: @Justin already had a look into the docs? http://sikulix-2014.readthedocs.org/en/latest/index.html or the javadocs: http://nightly.sikuli.de/docs/index.html -- 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 Justin Veerman posted a new comment: This did solve my issue, but I am curious why the 1 was needed. I don't really know what the 1 is referring to. -- 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 Justin Veerman posted a new comment: I did look at the docs but I couldn't figure out(before) how to write the commands in Java. I don't know where to find the format for Match within the docs, I am sure there they are but I couldn't find it. eg Match found = screen.exists(new Pattern(image6).similar(0.95),1); I usually like seeing an example of code and then applying it to my project, but I found that a bit difficult with the docs. -- 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 Justin Veerman posted a new comment: I understand. I just meant that having a start to finish example(a simple use-case) showing how Java/Selenium/Sikuli integrate with each other would be helpful. I tried to piece together examples from different places. Thanks for your help. -- 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 Eugene Maslov posted a new comment: Justin, the magic help tool is Google. If a problem is solvable, Sikuli examples are usually present in the web, e.g. sikuli java exists image not found, or a similar phrase, returns the examples, e.g. https://answers.launchpad.net/sikuli/+question/146397 . -- 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 RaiMan proposed the following answer: not knowing, what type image6 has, this is needed to add a wanted similarity score (as seen in Eugene's comment): Match found = screen.exists(new Pattern(image6).similar(0.95f),1); -- 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 Status: Open = Answered Eugene Maslov proposed the following answer: 95 is wrong. found=reg.exists(Pattern(myimage.png).similar(0.95),1) if found: print match else: print no match -- 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 Justin Veerman posted a new comment: Hi Eugene, Thanks for the response, however I am still a bit confused. What is this code doing? Why is 95 wrong if you included it in your response? Is it right that found is a Match type? You also put (if found), isn't the if supposed to be conditional on it being true? I tried my best to convert your answer to Java: Match found = screen.exists(image6.similar((float) 0.95),1); if (found != null) { System.out.println(Match); } else { System.out.println(No Match); } -- 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 #269065]: Unable to compare Expected SS to Actual Output
Question #269065 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269065 Justin Veerman posted a new comment: Also, I just want to make note of how difficult it was to find some example code. Comparing a screenshot to expected output, I would think, is a common problem for testing automation. There was really only two Sikuli tutorials on Youtube and even they did not address the comparisons. -- 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