Is it possible to set up Sikuli X on Mac OS X 10.9

Asked by Thato

I'm running integration tests on different browsers(Firefox, IE, Chrome and Safari) using TestNG + Selenium Webdriver and Sikuli X. I managed to get it to work on Firefox and Chrome.

I need help integrating Sikuli X on Maverics.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

what version of Sikuli?

what is your problem with OSX 10.9?

Revision history for this message
Thato (tmabeleng) said :
#2

Hi RaiMan, I'm using sikuli-r930.

I'm getting a IOException, it's complaining about libVisonProxy.dylib not found on classpath.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

How exactly is your usage?

Is it the first time, you use Sikuli on Mac?

Please paste the original error text.

You might think of upgrading to version 1.0.1

Revision history for this message
Thato (tmabeleng) said :
#4

java.io.IOException: Unable to find library META-INF/lib/libVisionProxy.dylib on classpath
 at com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractResource(DefaultJniExtractor.java:127)
 at com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractJni(DefaultJniExtractor.java:110)
 at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:43)
 at org.sikuli.script.Finder.<clinit>(Finder.java:33)
 at org.sikuli.script.Region.doFind(Region.java:1034)
 at org.sikuli.script.Region$RepeatableFind.run(Region.java:1237)
 at org.sikuli.script.Region$Repeatable.repeat(Region.java:1208)
 at org.sikuli.script.Region.wait(Region.java:498)
 at com.tag.autoNumbering.insertions.utils.InsertionAndMBOUtils.selectCustomer(InsertionAndMBOUtils.java:798)
 at com.tag.production.MBO.history.BroadcastMBOHistory.viewBroadcastMBOHistory(BroadcastMBOHistory.java:39)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
 at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
 at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
 at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
 at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
 at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
 at org.testng.TestRunner.privateRun(TestRunner.java:767)
 at org.testng.TestRunner.run(TestRunner.java:617)
 at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
 at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
 at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
 at org.testng.SuiteRunner.run(SuiteRunner.java:240)
 at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:51)
 at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:85)
 at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
 at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
 at org.testng.TestNG.run(TestNG.java:1030)
 at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
 at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
 at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
 at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
 at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
Failed to load VisionProxy

Revision history for this message
RaiMan (raimund-hocke) said :
#5

ok, if you want to stick with RC3:

Take care, that Sikuli-IDE.app is installed in /Applications

Witch RC3 this is the only easy way, to get it working with Java.

Revision history for this message
Thato (tmabeleng) said :
#6

Yes, it's the first time i'm using Sikuli on Mac and and i'm using it for the following reasons :

Chrome - I'm using it to interact with the UI(Clicking of buttons, hyperlinks) and to interact with modal windows. I was having issues where, wedriver could not locate interact with certain elements

Firefox - To interact with modal windows

Safari - To also interact with modal windows

Revision history for this message
RaiMan (raimund-hocke) said :
#7

Since you are using "TestNG + Selenium Webdriver " I suppose, you are doing your Job in Java using Eclipse or something similar.

If I am right, then you should really have a look at version 1.0.1 (setup option 4 -> sikuli-java.jar), which is useable in every system environment without any "installation". If you use option 6 (for all systems) you even have a sikuli-java.jar, that you can carry around on a stick and it will work on every system having Java 6 or 7 out of the box.

Revision history for this message
Thato (tmabeleng) said :
#8

Yes, you are right i'm doing my job in java.

Let me try the fourth option and get back to you

Revision history for this message
RaiMan (raimund-hocke) said :
#9

Can you help with this problem?

Provide an answer of your own, or ask Thato for more information if necessary.

To post a message you must log in.