[Sikuli-driver] [Question #681769]: How to continue from FindFailed exception using Selenium and Java
New question #681769 on Sikuli: https://answers.launchpad.net/sikuli/+question/681769 I am using Selenium, Sikuli with JAVA in eclipse IDE Basically I am a game tester and I have to click on a particular button "Spin" several times In this process of identifying the spin button image, some times execution fails and gives me a Exception in thread "main" FindFailed error. can someone guide me what script to code to continue the automation from where it failed last time? Instead of running the entire test case again. -- 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 #681767]: Import a module inside sikulix script
New question #681767 on Sikuli: https://answers.launchpad.net/sikuli/+question/681767 Hi RaiMan, I'm using the new sikulix version, it's way better btw! However, I don't know if what i'm trying to do it's possible, I've this python module which I'm using as a "database layer", so all I need from the database I call this script and then use this inside my sikulix script. The problem is, this database module use the library cx_Oracle an this has some C-based code, so when I import my database layer module inside my sikulix script I got this error: error] script [ createPurchaseOrder ] stopped with error in line 6 [error] ImportError ( No module named cx_Oracle ) [error] --- Traceback --- error source first line: module ( function ) statement 1: getData ( ) import cx_Oracle 6: main ( ) import getData [error] --- Traceback --- end -- My sikulix script it's like this: database_module = "C:\\PATH\\createPurchaseOrder.sikuli\\botlib\\src\\database" if not database_module in sys.path: sys.path.append(database_module) import getData print(getData.getPORef('rconnection_string',, '77713060')) Do you have some suggestion? I've a workaround as we discuss in this issue: https://answers.launchpad.net/sikuli/+question/678478 However if i can use as a import in my script could be much better! Thanks, Antonio -- 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 1835099] Re: Exception in thread "main" Traceback
So with updated Sikuli snapshot - showHighlight is working - my batch files are all broken (exit IDE 0?) - I also tried just running a single script from the command line and received exit IDE 0 - IDE scripts work fine (from inside the GUI) Heading back to work tomorrow, so will have to troubleshoot later (reverting to previous SnapShot) -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1835099 Title: Exception in thread "main" Traceback Status in Sikuli: New Bug description: Every so often I get a error like this: (captured in historical log files) Setup: Java 8 U211 SikuliXIDE 1.1.4 SnapShot Windows 10 Home 64bit build 1063 AMD FX-8370, 32GB ram Launch: Error typically occurs on launch of the script (via batch) like this: >>"C:\Users\Eris\Dropbox\SikuliLogs\Collect.log" ( echo echo %date%-%time% echo echo collect1 java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect1" ) Error: Exception in thread "main" Traceback (most recent call last): File "", line 1, in File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 4, in from Sikuli import * File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 657, in use() File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 455, in use newScreen = JScreen() at org.sikuli.script.Location.getScreen(Location.java:255) at org.sikuli.script.Mouse.move(Mouse.java:394) at org.sikuli.script.Mouse.move(Mouse.java:375) at org.sikuli.script.Mouse.init(Mouse.java:63) at org.sikuli.script.Screen.initScreens(Screen.java:153) at org.sikuli.script.Screen.(Screen.java:186) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211) java.lang.NullPointerException: java.lang.NullPointerException IDE terminated: returned: 1 I may run the scripts 50+ times and only see this once, if I catch the error and immediately re-run the batch file it works fine To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1835099/+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 1835099] Re: Exception in thread "main" Traceback
I just checked and my SnapShot was downloaded in May 2019, current SnapShot is June 2019 - so I am downloading the updated version to test (I won't know right away if this changes anything) -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1835099 Title: Exception in thread "main" Traceback Status in Sikuli: New Bug description: Every so often I get a error like this: (captured in historical log files) Setup: Java 8 U211 SikuliXIDE 1.1.4 SnapShot Windows 10 Home 64bit build 1063 AMD FX-8370, 32GB ram Launch: Error typically occurs on launch of the script (via batch) like this: >>"C:\Users\Eris\Dropbox\SikuliLogs\Collect.log" ( echo echo %date%-%time% echo echo collect1 java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect1" ) Error: Exception in thread "main" Traceback (most recent call last): File "", line 1, in File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 4, in from Sikuli import * File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 657, in use() File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 455, in use newScreen = JScreen() at org.sikuli.script.Location.getScreen(Location.java:255) at org.sikuli.script.Mouse.move(Mouse.java:394) at org.sikuli.script.Mouse.move(Mouse.java:375) at org.sikuli.script.Mouse.init(Mouse.java:63) at org.sikuli.script.Screen.initScreens(Screen.java:153) at org.sikuli.script.Screen.(Screen.java:186) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211) java.lang.NullPointerException: java.lang.NullPointerException IDE terminated: returned: 1 I may run the scripts 50+ times and only see this once, if I catch the error and immediately re-run the batch file it works fine To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1835099/+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 1835099] [NEW] Exception in thread "main" Traceback
Public bug reported: Every so often I get a error like this: (captured in historical log files) Setup: Java 8 U211 SikuliXIDE 1.1.4 SnapShot Windows 10 Home 64bit build 1063 AMD FX-8370, 32GB ram Launch: Error typically occurs on launch of the script (via batch) like this: >>"C:\Users\Eris\Dropbox\SikuliLogs\Collect.log" ( echo echo %date%-%time% echo echo collect1 java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect1" ) Error: Exception in thread "main" Traceback (most recent call last): File "", line 1, in File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 4, in from Sikuli import * File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 657, in use() File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 455, in use newScreen = JScreen() at org.sikuli.script.Location.getScreen(Location.java:255) at org.sikuli.script.Mouse.move(Mouse.java:394) at org.sikuli.script.Mouse.move(Mouse.java:375) at org.sikuli.script.Mouse.init(Mouse.java:63) at org.sikuli.script.Screen.initScreens(Screen.java:153) at org.sikuli.script.Screen.(Screen.java:186) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211) java.lang.NullPointerException: java.lang.NullPointerException IDE terminated: returned: 1 I may run the scripts 50+ times and only see this once, if I catch the error and immediately re-run the batch file it works fine ** 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/1835099 Title: Exception in thread "main" Traceback Status in Sikuli: New Bug description: Every so often I get a error like this: (captured in historical log files) Setup: Java 8 U211 SikuliXIDE 1.1.4 SnapShot Windows 10 Home 64bit build 1063 AMD FX-8370, 32GB ram Launch: Error typically occurs on launch of the script (via batch) like this: >>"C:\Users\Eris\Dropbox\SikuliLogs\Collect.log" ( echo echo %date%-%time% echo echo collect1 java -jar "d:\MikE\sikulix.jar" -r "d:\mike\Sikuli Scripts\Collect1" ) Error: Exception in thread "main" Traceback (most recent call last): File "", line 1, in File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 4, in from Sikuli import * File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 657, in use() File "C:\Users\Eris\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 455, in use newScreen = JScreen() at org.sikuli.script.Location.getScreen(Location.java:255) at org.sikuli.script.Mouse.move(Mouse.java:394) at org.sikuli.script.Mouse.move(Mouse.java:375) at org.sikuli.script.Mouse.init(Mouse.java:63) at org.sikuli.script.Screen.initScreens(Screen.java:153) at org.sikuli.script.Screen.(Screen.java:186) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:211) java.lang.NullPointerException: java.lang.NullPointerException IDE terminated: returned: 1 I may run the scripts 50+ times and only see this once, if I catch the error and immediately re-run the batch file it works fine To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1835099/+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 #681587]: [1.1.4]After run [Take screenshot], sikulixIDE window disappear
Question #681587 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/681587 Status: Open => Answered TestMechanic proposed the following answer: Windows 2019 differs a lot from win10 I have ideas for you to try: -- run sikuli with debug - https://sikulix-2014.readthedocs.io/en/latest/faq/010-command-line.html -- starting sikuli with "run as" administrator -- try older versions of sikuli - like 1.1.3 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