Re: [Sikuli-driver] [Question #685363]: Selenium WebDriver: Safari 11+ blocks Sikulix operations --- no solution

2019-10-24 Thread Abhishek K
Question #685363 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/685363

Abhishek K posted a new comment:
RaiMan, Thank you for the quick response!!

-- 
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 #685363]: Safari 13.0.2 blocks Sikulix operations

2019-10-23 Thread Abhishek K
New question #685363 on Sikuli:
https://answers.launchpad.net/sikuli/+question/685363

Hi RaiMan,

I'm trying to use SikuliX on a Safari 13.0.2 version. When browser opened and 
Sikuli tries to do some operations the Safari throws pop-up window saying "The 
Safari window is remotely controlled by an automated test" 

After further investigation, I got to know that manual intervention is blocked 
by the Safari driver when the automated window is open. I would like to know, 
why is Safari considering the Sikuli operations as a manual intervention? is 
there any solution available for this?

I'm using Sikulix latest maven dependency. ie. 2.0.0 with Selenium Webdriver 
and Java


Regards,


-- 
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 #452522]: Sikuli error on launch

2017-02-08 Thread Abhishek Garg
New question #452522 on Sikuli:
https://answers.launchpad.net/sikuli/+question/452522

I am trying to execute my first sikuli script with Selenium. Trying to automate 
desktop application - windows 7

Followed all the steps correctly as mentioned in 
http://www.helpingtesters.com/web-automation-with-sikuli-and-selenium/ but I am 
getting error again and again. Plz check

java.lang.AssertionError: Widget desktop invocation failed (expected 200, but 
was 500):

Script I am running is:
import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern; //This is class, which will focus on images
import org.sikuli.script.Screen; //This is a class, which will focus on the 
screen
 
public class DemoSikuli {
 
  public static void main(String args[]) throws FindFailed{
  Screen screen = new Screen();
  Pattern image = new Pattern(D:\\images\\Sikuli.PNG);
  screen.click(image);}
}


-- 
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 #452522]: Sikuli error on launch

2017-02-08 Thread Abhishek Garg
Question #452522 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/452522

Description changed to:
I am trying to execute my first sikuli script with Selenium. Trying to
automate desktop application - windows 7

Followed all the steps correctly as mentioned in
http://www.helpingtesters.com/web-automation-with-sikuli-and-selenium/
but I am getting error again and again. Plz check

java.lang.AssertionError: Widget desktop invocation failed.

Script I am running is:
import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern; //This is class, which will focus on images
import org.sikuli.script.Screen; //This is a class, which will focus on the 
screen
 
public class DemoSikuli {
 
  public static void main(String args[]) throws FindFailed{
  Screen screen = new Screen();
  Pattern image = new Pattern(D:\\images\\Sikuli.PNG);
  screen.click(image);}
}

-- 
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 #268925]: Webservice call from sikuli

2015-07-06 Thread Abhishek
New question #268925 on Sikuli:
https://answers.launchpad.net/sikuli/+question/268925

Hi Raiman,
We are using sikuli for quite a while now. Thanks for the outstanding product. 
We need a favor from you. We are trying to customize sikuli, to call our 
webservice(wsdl), which will carry some parameters and we also need to catch 
the response back. We were struggling with the implementation. So please let us 
know, that:-

1. Is it really possible to customize sikuli to do all these fancy stuffs?
2. If (1) is yes, then how to call a webservice (SOAP based webservice. not URL 
one) from sikuli, as it does not provide any functionality as such ?

Also we need to download sikuli-IDE.jar and sikuli-script.jar manually. Please 
could forward us the link for the same.

-- 
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 #255249]: App.open fails. os.system opens the app but no button is working on app probably cause of not in focus

2014-10-01 Thread ABHISHEK SINGH
New question #255249 on Sikuli:
https://answers.launchpad.net/sikuli/+question/255249

Hi 
I am quite new to Sikuli and I am using it to automate couple of windows 
benchmark tools (like CDM,AS SSD, HDTunePro).
I have successfully automated it for CDM and it works very fine . The problem 
is with AS SSD and HDTunePro.
In AS SSD, App.open fails even after giving the complete path of the 
executable. So I had to use os.system which succeeds but no operations are 
performed once it opens the app. Below is the code snippet

import shutil
import os
iter=input(Please enter how many iterations you want:\n(Default is 4),4)
for n in range(int(iter)):
#asd=App.open(D:\\Program Files\\ASSSDBenchmark\\ASSSDBenchmark.exe)  
//fails with log [error] App.open failed: D:\Program 
Files\ASSSDBenchmark\ASSSDBenchmark.exe not found
#wait(2)
asd=r'D:\Program Files\ASSSDBenchmark\ASSSDBenchmark.exe'
asssd=App(asd)
if not asssd.window():
os.system(asd)
wait(2) 
click(1412168323505.png)  // no code working after 
this line. App opens and waits forever. 
   After closing app manually, below log message : 
[error] script [ AS_SSD ] stopped with error in line 12
[error] FindFailed ( can not find 1412168323505.png on the screen. )

type(E+Key.Enter)
click(1412168374882.png)
wait(1412168807440.png,300)
type(c,KEY_CTRL)
f=open(D:\\Users\\Test\\Desktop\\SikuliResultsASSSD.txt,a )
result=Env.getClipboard()
f.write(result)
f.close()
#asd.close()  
click(1412168833144.png)

With HDTunePro, same case for App.open() failure. One more issue is that it is 
unable to open the app using os.system too, as first a popup is displayed 
saying that it's a trial version for 15 days and you have to click ok to run 
the app. This popup is not coming using the script. How to handle this popup 
and shift focus back to app after clicking ok. Code is:

hd=r'D:\Program Files (x86)\HD Tune Pro\HDTunePro.exe'
hdtunepro=App(hd)
if not hdtunepro.window():
   import os   
   os.system(hd)
wait(2)
if exists(Pattern(1412155138836.png).similar(0.48),20):
click(ok.png)
wait(2)
#hd.focus()
wait(2)
click(1410524882923.png)   
wait(10)
wait(1410524965008.png,300)
type(c,KEY_CTRL)
f=open(D:\\Users\\Test\\Desktop\\SikuliResultsHD.txt,a)
result=Env.getClipboard()
f.write(result)
f.close()
#  hd.close()
popup(HDTunePro tool has finished benchmarking.\n Please see the results in 
SikuliResultsHD.txt)

Please 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 #255249]: App.open fails. os.system opens the app but no button is working on app probably cause of not in focus

2014-10-01 Thread ABHISHEK SINGH
Question #255249 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255249

Description changed to:
Hi 
I am quite new to Sikuli and I am using it to automate couple of windows 
benchmark tools (like CDM,AS SSD, HDTunePro).
I have successfully automated it for CDM and it works very fine . The problem 
is with AS SSD and HDTunePro.
In AS SSD, App.open fails even after giving the complete path of the 
executable. So I had to use os.system which succeeds but no operations are 
performed once it opens the app. Below is the code snippet

import shutil
import os
iter=input(Please enter how many iterations you want:\n(Default is 4),4)
for n in range(int(iter)):
#asd=App.open(D:\\Program Files\\ASSSDBenchmark\\ASSSDBenchmark.exe)  
//fails with log [error] App.open failed: D:\Program 
Files\ASSSDBenchmark\ASSSDBenchmark.exe not found
#wait(2)
asd=r'D:\Program Files\ASSSDBenchmark\ASSSDBenchmark.exe'
asssd=App(asd)
if not asssd.window():
os.system(asd)
wait(2) 
click(1412168323505.png)  // no code working after 
this line. App opens and waits forever. 
   After closing app manually, below log message : 
[debug] getWindow: null
[error] script [ AS_SSD ] stopped with error in line 12
[error] FindFailed ( can not find 1412168323505.png on the screen. )

type(E+Key.Enter)
click(1412168374882.png)
wait(1412168807440.png,300)
type(c,KEY_CTRL)
f=open(D:\\Users\\Test\\Desktop\\SikuliResultsASSSD.txt,a )
result=Env.getClipboard()
f.write(result)
f.close()
#asd.close()  
click(1412168833144.png)

With HDTunePro, same case for App.open() failure. One more issue is that
it is unable to open the app using os.system too, as first a popup is
displayed saying that it's a trial version for 15 days and you have to
click ok to run the app. This popup is not coming using the script.
How to handle this popup and shift focus back to app after clicking
ok. Code is:

hd=r'D:\Program Files (x86)\HD Tune Pro\HDTunePro.exe'
hdtunepro=App(hd)
if not hdtunepro.window():
   import os   
   os.system(hd)
wait(2)
if exists(Pattern(1412155138836.png).similar(0.48),20):
click(ok.png)
wait(2)
#hd.focus()
wait(2)
click(1410524882923.png)   
wait(10)
wait(1410524965008.png,300)
type(c,KEY_CTRL)
f=open(D:\\Users\\Test\\Desktop\\SikuliResultsHD.txt,a)
result=Env.getClipboard()
f.write(result)
f.close()
#  hd.close()
popup(HDTunePro tool has finished benchmarking.\n Please see the results in 
SikuliResultsHD.txt)

Please 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


[Sikuli-driver] [Question #252931]: Finder class clips source image to screen size

2014-08-11 Thread Abhishek Ganguly
New question #252931 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252931

i am using sikuli-java to test whether one image exists within another (bigger) 
image. neither of the two images are on the attached physical monitor. most 
likely they have nothing to do with the desktop.

Finder f = new Finder(big_filePath);
f.find(new Pattern(small_filePath));
Match m = f.next();

this works fine except for once scenario:

* the small-image EXISTS within the big-image AND
* the small-image is LARGER than the dimensions of the attached MONITOR.

in that case the 'Match' object gets clipped at the monitor dimension boundary.

M[234,182 1132x586]@S(S(0)[0,0 1366x768]) S:1.00 Target:800,475
Please note that 234+1132=1366 and 182+586=768

---

in another scenario, i tried finding something well outside the monitor's 
dimension,  but of a rather small size. in that case Sikuli gave an 
suppressible but logical error:

[error] Region(2645,2004,107,108) outside any screen - subsequent actions might 
not work as expected

this is fine with me.

---

my complete code:

//classpath: Sikuli-1.0.1\sikuli-java.jar

import org.sikuli.script.Finder;
import org.sikuli.script.Match;
import org.sikuli.script.Pattern;

public class Main {

public static void main(String[] args) throws Exception {
String bigfilePath = d:/big1.jpg;

Finder f = new Finder(bigfilePath);
f.find(new Pattern(d:/big2.jpg));
Match m = f.next();

System.out.println(m);
}

}

---

thanks in advance
:)

-- 
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 #232940]: [1.0] App.open() opens an app and close immediatly.

2013-07-24 Thread Abhishek Lal
Question #232940 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232940

Abhishek Lal posted a new comment:
I can see the process appear on the process list(gnome-system-monitor),
but no GUI, the process stays as long as the program runs.

It must be hidden as you said, But not minimized.
I tried App.focus(kate); 
But the app still goes hide.

I am coding on Netbeans. 7.3.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


[Sikuli-driver] [Question #232900]: how to turn on text recognition, Java

2013-07-23 Thread Abhishek Lal
New question #232900 on Sikuli:
https://answers.launchpad.net/sikuli/+question/232900

I just started with sikuli,

I am using java  + sikuli api,
I am trying to get text from a region.

but what I am getting is

[error] Region.text: text recognition is currently switched off
--- no text ---

the code I am using is 

Region r_TCA0_full = r_TCA0_head.below(532);
String txt =  r_TCA0_full.text();
System.out.println(txt);


How to turn on the text recognition?

pacakges I already installed:
libtesseract-dev 3.02.01-2
libtesseract3   3.02.01-2
tesseract-ocr  3.02.01-2
tesseract-ocr-eng  3.02.01-2
tesseract-ocr-osd   3.02.01-2

I am on linux, (ubuntu 12.04), using Sikuli-API-1.0.0-Lnx32.zip

*Actually I need to get the list of items in a list box


-- 
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 #232900]: [1.0] [HowTo] turn on text recognition --- solution

2013-07-23 Thread Abhishek Lal
Question #232900 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232900

Status: Answered = Solved

Abhishek Lal 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


[Sikuli-driver] [Question #232940]: [1.0] App.open() opens an app and close immediatly.

2013-07-23 Thread Abhishek Lal
New question #232940 on Sikuli:
https://answers.launchpad.net/sikuli/+question/232940

My code is

App.open( /usr/bin/kate);
Screen s = new Screen();
try {
s.wait(images/head.png, 10);
..

It opens the app for a sec or less and immediatialy the app get disappear. 
while the remaing part of code is running.

in console I am getting.

[log] openApp:  /usr/bin/kate
[log] App.open  /usr/bin/kate(25402)


I am using sikuli[1.0] + java, on GNU/Linux(Ubuntu 12.04)

-- 
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 #211361]: running sikuli on linux

2012-10-16 Thread Abhishek
New question #211361 on Sikuli:
https://answers.launchpad.net/sikuli/+question/211361

typing sikuli-ide.sh in shell does not open sikuli editor(linux), 
only the message: 
[info] locale: en_US
is shown but nothing shows up

-- 
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 #211361]: running sikuli on linux

2012-10-16 Thread Abhishek
Question #211361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/211361

Abhishek posted a new comment:
yes as mentioned in the website i have
Java Runtime Environment (JRE) 6, wmctrl, and OpenCV 2.1 installed...

-- 
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 #211372]: java.lang.UnsatisfiedLinkError: /tmp/tmplib/libVisionProxy.so

2012-10-16 Thread Abhishek
New question #211372 on Sikuli:
https://answers.launchpad.net/sikuli/+question/211372

Getting the following error on running the sikuli test file(java jdev project):

/scratch/aime/SIKULI/jre1.6.0_31/bin/java -server -classpath 
/scratch/aime/jdeveloper/mywork/Application1/.adf:/scratch/aime/jdeveloper/mywork/Application1/Project2/classes:/scratch/aime/SIKULI/Sikuli-X-1.0rc3
 
(r905)-linux-x86_64/Sikuli-IDE/sikuli-script.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3
 
(r905)-linux-x86_64/Sikuli-IDE/JXGrabKey.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3
 
(r905)-linux-x86_64/Sikuli-IDE/commons-cli-1.2.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3
 
(r905)-linux-x86_64/Sikuli-IDE/forms-1.2.1.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3
 
(r905)-linux-x86_64/Sikuli-IDE/json_simple-1.1.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3
 
(r905)-linux-x86_64/Sikuli-IDE/junit-3.8.1.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3
 
(r905)-linux-x86_64/Sikuli-IDE/mac_widgets.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3
 
(r905)-linux-x86_64/Sikuli-IDE/sikuli-ide.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3
 
(r905)-linux-x86_64/Sikuli-IDE/swing-layout-1.0.1.jar:/scratch/aime/SIKULI/Sikuli-X-1.0rc3
 (r905)-linux-x86_64/Sikuli-IDE/swingx-core-1.6.2.jar 
-Djavax.net.ssl.trustStore=/scratch/aime/Oracle/Middleware1/wlserver_10.3/server/lib/DemoTrust.jks
 project2.ClassA
[log] TYPE 

Exception in thread main java.lang.UnsatisfiedLinkError: 
/tmp/tmplib/libVisionProxy.so: libml.so.2.1: cannot open shared object file: No 
such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at 
com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
at org.sikuli.script.Finder.clinit(Finder.java:33)
at org.sikuli.script.Region.doFind(Region.java:1029)
at org.sikuli.script.Region$RepeatableFind.run(Region.java:1232)
at org.sikuli.script.Region$Repeatable.repeat(Region.java:1203)
at org.sikuli.script.Region.wait(Region.java:497)
at org.sikuli.script.Region.find(Region.java:381)
at org.sikuli.script.Region.getLocationFromPSRML(Region.java:1129)
at org.sikuli.script.Region.click(Region.java:606)
at org.sikuli.script.Region.click(Region.java:593)
at project2.ClassA.fun1(ClassA.java:9)
at project2.ClassA.main(ClassA.java:18)
Process exited with exit code 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