Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Solved
deva 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
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Answered
RaiMan proposed the following answer:
not specifically.
... but how do you run any Java stuff in selenium grid?
... the same goes for your Java stuff using Sikuli features - just
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Answered = Open
deva is still having a problem:
My sample code is:
selenium.open(URL);
Pattern img = new Pattern(img-path);
screen.click(img);
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Answered
RaiMan proposed the following answer:
the image path must be correct with respect to the running context (the
remote node in this case)
--
You received this question
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Needs information = Open
deva gave more information on the question:
I tried the below code in sikuli IDE 1.1.0
f = Finder(C:\Users\Admin\Desktop\FullScreenWebpage.png)
img = iconToFind.png
mm
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Answered
RaiMan proposed the following answer:
Sorry for misleading:
the mentioned
mm = list(f.findAll(img))
only makes sense, if f is a Region object.
There is an incompatibility
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Linked to bug: #1397515
https://bugs.launchpad.net/bugs/1397515
[request] search ops should be available for given images the same way as
for region objects.
--
You received this question
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Answered = Open
deva is still having a problem:
Thanks!
i tried to write the same code in java.
but i struck here:
for m in mm:
print m
s = baseImg.getSub(m.x, m.y, 50, 50).asFile()
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Answered
RaiMan proposed the following answer:
when using Java this should be handled directly in the while
(f.hasNext()) loop:
while (f.hasNext()) {
Match m = f.next();
Image
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Answered = Open
deva is still having a problem:
I tried as you suggested. it is not working. i couldn't save the images.
also i want to get text of sub image.
i can get text of sub image in
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
deva gave more information on the question:
text recognition is working in java. When i used the below code
Settings.OcrTextRead = true;
Settings.OcrTextSearch = true;
I can
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Answered
RaiMan proposed the following answer:
new File(baseImg.getSub(m.x, m.y, 150, 150).asFile()).renameTo(new
File(TargetPath));
... for File.rename() the folder structure must
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Answered = Open
deva is still having a problem:
Thanks!
But i got only one image (someFile.png) in TargetPath
--
You received this question notification because you are a member of
Sikuli
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Solved = Open
deva is still having a problem:
Thanks for your prompt reply!
I tried with finder as you suggested. but i got the below error,
Region(779,7404,103,13) outside any screen -
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Needs information
RaiMan requested more information:
What version of Sikuli are you using?
Principally you can ignore this warning (which should not be produced,
when working with Finder
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Needs information = Open
deva gave more information on the question:
we use Sikuli v1.0.1
-CODE START
import shutil
f =
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Answered
RaiMan proposed the following answer:
Ok, understood:
on your complete webpage image (FullScreenWebpage.png) there are multiple
occurrences of the searched image iconToFind.png.
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Answered = Open
deva is still having a problem:
Could you please tell me how to resolve the below error?
[error] NameError ( name 'Image' is not defined )
--
You received this question
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Answered
RaiMan proposed the following answer:
as mentioned, you need version 1.1.0
--
You received this question notification because you are a member of
Sikuli Drivers, which is an
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
RaiMan proposed the following answer:
uups, my fault.
so again:
the mentioned solution using Image.create() is only available in version 1.1.0+
--- correct:
with version 1.1.0 this would be possible:
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Answered = Solved
deva confirmed that the question is solved:
Thanks for your information!
I tried the same in sikuli IDE 1.1.0 . but i got the below ERROR
[error] AttributeError ( 'unicode'
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Solved = Open
deva is still having a problem:
Thanks for your information!
I tried the same in sikuli IDE 1.1.0 . but i got the below ERROR
[error] AttributeError ( 'unicode' object has no
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Needs information
RaiMan requested more information:
with what code?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open = Answered
RaiMan proposed the following answer:
see
http://sikulix-2014.readthedocs.org/en/latest/finder.html#finder
--
You received this question notification because you are a member
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Answered = Solved
deva 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,
25 matches
Mail list logo